1

I have an issue after migrate my project from Angular 13 to Angular 14. When save any change to the source code, webpack-dev-server goes into infinite compile loop. There are colleagues that have the same problems and collegues that, with the same code and packages, doesn't have this issue. I've tried with other versions of webpack, re-clone project, disable cache, ecc., but nothings helps. I found that the issue is due to custom assets in angular.json for package tinymce (with ng serve verbo se I saw that webpack detect modified files in node_modules/tinymce). These assets are necessarly and before the upgrade, the application always worked with these assets. When I save a change with VS code (also with nothing changed), webpack-dev-server runs infinite compile loop. In console i see this logs:

[webpack-dev-server] Server started: Hot Module Replacement disabled, Live Reloading enabled, Progress disabled, Overlay enabled.
[webpack-dev-server] App updated. Recompiling...
[webpack-dev-server] Disconnected!
[webpack-dev-server] Trying to reconnect...
[webpack-dev-server] Nothing changed.
[webpack-dev-server] App updated. Recompiling...
[webpack-dev-server] Nothing changed
gcannone
  • 11
  • 1

0 Answers0