admin管理员组文章数量:1387312
I have upgraded my application from Angular 18 to 19. After a successful migration, any code changes I make are not reflected in the browser, and the application does not auto-reload when I modify the code. Even after making changes, the old version is still displayed.
I have upgraded my application from Angular 18 to 19. After a successful migration, any code changes I make are not reflected in the browser, and the application does not auto-reload when I modify the code. Even after making changes, the old version is still displayed.
Share Improve this question asked Mar 17 at 15:59 Harish RedyshettyHarish Redyshetty 114 bronze badges 2 |1 Answer
Reset to default 1My gut feeling is that the problem is related to HMR (hot module replacement). Starting in Angular 19 HMR is enabled for css/scss and HTML files by default. When you run ng s
it says the following:
Component HMR has been enabled.
If you encounter application reload issues, you can manually reload the page to bypass HMR and/or disable this feature with the --no-hmr
command line option.
Please consider reporting any issues you encounter here: https://github/angular/angular-cli/issues
本文标签: angular19Angular 19 migration issueStack Overflow
版权声明:本文标题:angular19 - Angular 19 migration issue - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744549073a2612073.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
ng serve
, now to see if the issue persists again. Or share any logs or warnings you may see from dev tools so we can debug further. – Hakim Asa Commented Mar 18 at 9:51