HMR: PUG template updates issue #76
Labels
bug
Something isn't working
feat: hmr
p3-minor-bug 🔨
An edge case that only affects very specific usage (priority)
Describe the bug
While updating script or template (pug) section of vue3 component i get an error in console, i need a few times to update a file + refresh the page to keep working. With HTML templates all good.
Reproduction
https://codesandbox.io/s/determined-shtern-6slyjc?file=/src/views/PugExample.vue
Steps to reproduce
testVariable
totestVariable2
in template & script section.P.S. Sometimes it works, just keep changing the name of the variable until you get an error.
System Info
Used Package Manager
npm
Logs
vite:hmr [file change] src/views/PugExample.vue +11s
vite:hmr [vue:update(template)] /Users/{whoami}/Sandbox/vue-clean-project/src/views/PugExample.vue +0ms
8:29:42 PM [vite] hmr update /src/views/PugExample.vue, /src/views/PugExample.vue?vue&type=template&lang.js
vite:load 0.08ms [plugin] /src/views/PugExample.vue?vue&type=template&lang.js +11s
vite:hmr [self-accepts] src/views/PugExample.vue?vue&type=template&lang.js +39ms
vite:import-analysis 1.01ms [1 imports rewritten] src/views/PugExample.vue?vue&type=template&lang.js +11s
vite:transform 9.92ms /src/views/PugExample.vue?vue&type=template&lang.js +11s
vite:time 11.37ms /src/views/PugExample.vue?vue&type=template&lang.js +11s
vite:cache [memory] /node_modules/.vite/deps/vue.js?v=d2275782 +11s
vite:load 12.65ms [fs] /src/views/PugExample.vue +11ms
vite:hmr [self-accepts] src/views/PugExample.vue +7ms
vite:import-analysis 2.84ms [2 imports rewritten] src/views/PugExample.vue +7ms
vite:transform 4.76ms /src/views/PugExample.vue +6ms
vite:time 19.77ms /src/views/PugExample.vue +7ms
vite:cache [memory] /src/views/PugExample.vue?vue&type=template&lang.js +7ms
vite:cache [memory] plugin-vue:export-helper +0ms
Validations
The text was updated successfully, but these errors were encountered: