-
Notifications
You must be signed in to change notification settings - Fork 12k
NG_HMR_TEMPLATES not working #29049
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, I just created a new project with We're going to need some more details/a repro for this to be actionable to us. Thank you. |
Same issue. Updated to 19.0.1 after a clean project of v19 and HMR templates simply does not update the view. Tried changing on app.component and a nested route component. EDIT: Just created a new project with the latest cli installed. Verified that installed deps are 19.0.1. Ran with the HMR flag in the command. Tested using the AppComponent template and continue to get the "Component update sent to client(s)" in the terminal but nothing updates in the browser view. For added clarification: I do see the "Experimental support for component template hot replacement has been enabled via the "NG_HMR_TEMPLATE" environment variable." message so I know that it took the flag. |
Same issue. Additionally the
|
I have the same issue as juane1000 |
Ditto here - had to disable this feature. |
This is likely a CLI issue. Moving into the appropriate repo. |
Are there any updates on this? |
This must be a Windows thing. I cannot get template HMR to work on my Windows machine, but the same code works on my Mac. |
Seems like it is related to windows vs POSIX path separators and a fix could be coming based on this commit: |
@taylorhutchison We're having this issue on MacOS (ARM) |
@spock123 have you tried version 19.0.5 of the angular cli? It just came out a day ago and includes a fix for template HMR. I'm curious if it fixes your issue. I don't have an ARM Mac to test on. |
@taylorhutchison updated packages in my repo and it works fine for html files (app.component.html). Thank you! |
I need to add something off-topic. HMR for styles and templates is something I've been waiting for a long time, and I have to admit it works brilliantly. For me, it's definitely the most important feature introduced in Angular 19, and I'm surprised it didn't get as much attention as other features. The productivity of writing code has increased significantly, especially when it comes to styling or adding content to templates, such as in step 3 of a stepper dialog. Until now, working on something like this required going through the same path a million times to see the changes. Thank you for this, Angular Team, truly! Cheers! |
@taylorhutchison I can confirm it now works for templates on my Mac (ARM) wonderful and magical! Now we just need the tailwind class changes to also trigger updates in templates. But there's an open issue that might soon have a fix also |
Is anyone still experiencing the issue ? |
@JeanMeche I think it's solved for this case. I think it still won't update when changing classes for a html element but that's for another github issue that's already open I think |
Thanks for reporting this issue. Please update to the most recent version to resolve the problem. If the problem persists in your application after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior. You can use |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Which @angular/* package(s) are the source of the bug?
Don't known / other
Is this a regression?
Yes
Description
I tried the template HMR on a new project created with Angular v19.0.2. As I read some days ago into another issue related to template HMR, there was a problem that's now fixed in the v19.0.1 by this commit... but it isn't working at all: the CLI prints a message saying "Component update sent to client(s).", an event is sent in the Angular websocket but nothing happens.
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
No response
The text was updated successfully, but these errors were encountered: