NativeScript: Reload app on save appears broken on version 6
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
- CLI: macOS (zsh)
- Cross-platform modules:
- Android Runtime: 28
- iOS Runtime: 10.0
- Plugin(s): Vue/Vuex/vuex-class-modules/vue-property-decorator
Describe the bug
When running tns run android --bundle in Nativescript 5.x after each save the Android emulator would do an incremental webpack build and reload the app but after updating to Nativescript 6 this appears to no longer work, the incremental builds happen but the app is no auto-reloaded. This leads to having to stop the build and re-run tns run android --bundle
To Reproduce
tns run android --bundle with Vue as the base, save any .vue/.ts source file and you’ll see it rebuild in the CLI properly, however, the app will not reload with the new code.
Expected behavior
When saving a .vue/.ts file the app auto-reloads to gain the perf of webpacks incremental builds instead of having to stop and rebuild on every save.
Sample project
Unfortunately one is not available.
Additional context
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 3
- Comments: 15 (3 by maintainers)
Would not it be related to HMR and #995 ? Have you tested the
--no-hmrflag ?@jbarnabe that was it! And here I thought I searched well enough through existing issues, thanks jbarnabe!
@jbarnabe that might be it! I felt as if hmr may now be the default in 6 but didn’t notice mention of it now being on by default. When I get to work a bit later today I’ll try that new flag out to disable it, thanks!
@jbarnabe seems like exactly what it is for me. At least the end result (the bug itself) is identical.