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
Inside the script section inside App.vue, do the following edits:
remove the return inside data
exportdefault{data(){}};
return an empty object
exportdefault{data(){return{};}};
return the original
exportdefault{data(){return{count: 2};}};
What is expected?
After doing the edits, the App looks normal since it is the same code as before.
What is actually happening?
Hot reloading encounters multiple TypeErrors inside updateComponent from Vue and the App cannot recover from its state and doesn't update automatically anymore, it just shows a blank page.
Also, the command line shows DONE Compiled successfully in 97ms which suggests that everything is fine.
When the page is reloaded everything works again as expected.
Additional Information:
I have included images inside the minimal reproduction sample that might be useful.
The text was updated successfully, but these errors were encountered:
Version
2.6.10
Reproduction link
https://github.com/SimonSiefke/vue-hot-reloading-issue
Steps to reproduce
Inside the script section inside
App.vue
, do the following edits:What is expected?
After doing the edits, the App looks normal since it is the same code as before.
What is actually happening?
Hot reloading encounters multiple TypeErrors inside
updateComponent
from Vue and the App cannot recover from its state and doesn't update automatically anymore, it just shows a blank page.Also, the command line shows
DONE Compiled successfully in 97ms
which suggests that everything is fine.When the page is reloaded everything works again as expected.
Additional Information:
I have included images inside the minimal reproduction sample that might be useful.
The text was updated successfully, but these errors were encountered: