Constantly have to run prepare-frontend due to TypeErrors in Vaadin 14

As I’m changing business logic in my vaadin 14 / spring boot app, unrelated to vaadin, after a few hot-restarts the UI shows me various TypeErrors. The only way to resolve them is to stop the app and run prepare-frontend, which is a real pain due to the time it takes. What’s going on here? It doesn’t seem like there’s any reason for the app to fail after a few restarts.

Edit: I’ll add that nothing in any of the js config files has changed:

  • webpack.config.js
  • webpack.generated.js
  • package.json
  • package-lock.json