-
-
Notifications
You must be signed in to change notification settings - Fork 40
Hot Module Replacement (HMR) not working correctly, not reflecting changes in component class file #1060
Comments
Having similar issues with IOS, I see hot module file in yellow in console, but entire app restarts but no changes are applied, used |
It'll be really appreciated if you send us the exact steps so we can reproduce the issue on our side. Also we'll need the content of your |
I recently updated from NS 5.4.2
|
Can also confirm I am experiencing similar issues. It will say "refreshed application on XXXX" but nothing happens on screen. |
Hey guys, We've investigated the problem and were able to reproduce the issue using the following steps:
The following text is printed on the console:
Expected: The changes should be applied on device
Can you confirm that you hit the same issue on your side? If this is not the case, can you describe the exact steps you're executing, so we can reproduce the issue on our side? It'll be appreciated if you send us a demo project demonstrating the behavior. |
hot reload don't work on TNS 6 |
I am trying... |
I am facing same issue on TNS 6 |
Hey guys,
We described here how we were able to reproduce the error. It seems as a minor issue as it happens only on first navigation to a lazy loaded route. Most probably it is not the same problem you faced. So, we need more information in order to help you. Without giving us the exact steps or demo project demonstrating the problem, we cannot investigate it further. |
bump! |
I am having the same problem for my nativescript app using v 6.1.0. on a mac. I have a project that used to work fine but all of a sudden the HMR stopped working for a specific project. The hot reload on this project still works for other projects on my mac and my co workers (all non mac users) are still able to have this project working on their computers. I know thats really vague but if i send you the dependencies would you be able to look into it. |
This is a specific issue for updating lazy modules in Angular apps. I suggest you log another issue following the issue template. Also, the logs from P.S. Before logging the issue, please update the NativeScript CLI and the |
@DimitarTachev running npm i nativescript@rc -g, npm i nativescript-dev-webpack@rc, seems to have fixed my problem. Thank you for your help. |
HMR also stopped working suddenly on my Mac (I'm on NS 6.1 + Angular 8.2). Upgrading |
I'm closing this issue as it's not related to the hot updates in Angular lazy routes anymore. For further HMR related issues, please log a new one following the issue template. |
(Edit: scratch that. HMR seemed to work there for a split second after the upgrade, but not anymore.) I think this issue is worth reopening. |
@fgutteridge, as the recent comments are not related to the initial issue, please follow the issue template and open a new issue with steps to reproduce. |
Environment
(HMR) not working correctly
in debug/run mode any change in component class code not updating app refresh with file update change detection but not update code. But with --no-hmr its works perfectly fine.
Expected behavior
tns debug android should work as tns debug android --no-hmr
The text was updated successfully, but these errors were encountered: