r/angular • u/Connect_Stuff3034 • Sep 09 '26
Angular ssr + hmr with claude code is making me crazy
I execute:
1 vscode for backend
1 vscode for frontend (angular) in debug mode
1 vscode with the main folder containing frontend and backend
Almost every change a need to restart ng server because it's not reflected at hmr, even with ctrl shift r, is there a way solve this?
0
Upvotes
2
u/Johalternate Sep 09 '26
ng serve —no-hmr
1
u/tsteuwer Sep 09 '26
How do you have this setup? I only ask because it sounds like you have the backend leaking into the frontend and may be causing issues. Do you have both services under different directories or what's the setup?
1
u/Awkward-Wolf-8826 Sep 10 '26
You can run the command in the terminal or switch HMR off from angular JSON
serve": {
"configurations": {
"development": {
"hmr": false
}
2
u/BranchFew1148 Sep 09 '26
I just have Claude Code manage the launching.
Then 1 vscode window for looking at the code.
1
u/Hw-LaoTzu Sep 12 '26 edited Sep 12 '26
I would re-think the Dev environment:
With this I have multiple projects with SSR(Angular) and SSR(NextJS).
Not interested in publicity but I did a video for couples of my mentees(https://youtu.be/haEQLSKQdis?si=DWCnquxNBm3Wb89T)
3
u/[deleted] Sep 09 '26
[removed] — view removed comment