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
Unable to get HMR working in Vue with TypeScript #9507
Comments
|
|
Code that I changed |
|
|
|
Digging further I found this nativescript-vue/nativescript-vue#846 and nativescript-vue/nativescript-vue#747 and nativescript-vue/nativescript-vue#518 so it may likely be something specific to NativeScript-Vue |
|
HMR does work. All you need to do is to navigate to another screen then go back to the screen you just modified because the hot reload those not update a screen in place until it's rerendered and you don't necessarily need to restart the app. |
|
Is that a limitation of Vue's HMR implementation? |
|
Yes with the current implementation - I'm working on improvements for Page HMR (other components that don't trigger a page to be re-rendered work fine). This PR is part of the effort: #9460 |
|
@rigor789 your statement makes it sound like the issue is with NativeScript's implementation rather than VueJS' implementation. |
|
Requires changes in both NativeScript (the above PR) and nativescript-vue - the latter being much less trivial to fix. |
|
@rigor789 so nothing needed from VueJS team then, that's good. |
Environment
Provide version numbers for the following components (information can be retrieved by running
tns infoin your project folder or by inspecting thepackage.jsonof the project):Describe the bug
Trying to get a HMR working with TypeScript and Vue
To Reproduce
Expected behavior
The modified message appears in the simulator
Sample project
Additional context
Running on macOS and Simulator is running iPad Air simulator
The text was updated successfully, but these errors were encountered: