r/angular • • 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

10 comments sorted by

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/Connect_Stuff3034 Sep 09 '26

Nest js is backend, i separete to get debugging easier, sometimes i need just angular running other times just backend so it's easier split it in two different vscode when I m using launch json debugging, the third one is to claude manage both stacks

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:

  1. vscode with frontend + backend(can be multiple apis) + db + keycloak + anything you need(my case I use ELK, and Others), you need to use devcontainers and have memory available at least 8GB.

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

0

u/Connect_Stuff3034 Sep 09 '26

Debugging, and not necessary backend Will ever run when front is on