-
Notifications
You must be signed in to change notification settings - Fork 32
Hot Module Replacement (--hmr) does not work in VSCode #221
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
Additional note: If you use Is it possible to debug an hmr build started with |
Currently debug command does not support |
Wow that is awesome! Thanks! |
Acceptance criteria:
|
Environment
Using nativescript-vue and vue-loader
Describe the bug
When using
--hmr
in the debugger launch options, hmr is activated (I see recompilation and bundle transfered to device messages), the application starts and works, but code changes still trigger an app reload.To Reproduce
use the
"tnsArgs": [ "--hmr" ]
option in Launch.json, and Launch on iOS. Make a code change.Expected behavior
The app is not restarted, and the code change is reflected in the app.
Additional context
The latest vue-cli-template has an older vue-loader which has vue-hot-reload-api pinned at 2.3.0, and contains a
window
reference bug (which shows only when using --hmr). You need to update to"vue-loader": "^15.4.2"
and update dependencies to get vue-hot-reload-api at 2.3.1The text was updated successfully, but these errors were encountered: