You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HMR (Hot Module Replacement) is only working when changes are made to the component that is directly set in app.ts. If I navigate to another screen (e.g., using $navigateTo()), and make edits to that screen’s file, changes are not reflected unless I manually edit the initial screen to force a reload.
🔁 Steps to reproduce
Create a new project:
ns create test --template @nativescript-vue/template-blank@latest
Create the file ./src/pages/auth/sign-in.vue with this content:
Hi @pazfelipe. I've been doing some research, and it seems that for some reason @vue/runtime-core has stopped calling this method on hot reload. I'll try to dig deeper and see which version of vue it stopped working on
@pazfelipe HMR used to be working almost perfectly with 3.0.0-rc.2 as far as I remember. You could try downgrading to that version. There haven't been that many changes since RC2. With 3.0.0-rc.3 the dependencies have been bumped, I guess that's where it stopped working. (@vue/runtime-corehas been updated from ^3.4.23 to ^3.5.13. If vallemar's research is right that's probably why it stopped working)
HMR (Hot Module Replacement) is only working when changes are made to the component that is directly set in app.ts. If I navigate to another screen (e.g., using $navigateTo()), and make edits to that screen’s file, changes are not reflected unless I manually edit the initial screen to force a reload.
🔁 Steps to reproduce
ns create test --template @nativescript-vue/template-blank@latest
./src/pages/auth/sign-in.vue
with this content:./src/pages/Home.vue
with this content:✅ How to test
💻 My environment
🔧 Expected behavior
HMR should reflect changes in any active screen component, regardless of whether it is the initial component set in app.ts.
The text was updated successfully, but these errors were encountered: