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
In Vite Server, when performing Vite build from the code, the build used the clientCache cache variable of the server, resulting in incorrect script content obtained. Vite build should have obtained the full script instead of obtaining hmr data. Ultimately leading to mutation errors:
Should clientCache be removed globally? Put it inside the vuePlugin method, so that the cache obtained by each vite configured vuePlugin is independent
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Related plugins
plugin-vue
plugin-vue-jsx
Describe the bug
In Vite Server, when performing Vite build from the code, the build used the clientCache cache variable of the server, resulting in incorrect script content obtained. Vite build should have obtained the full script instead of obtaining hmr data. Ultimately leading to mutation errors:
The problem occurred at wxt#538 wxt#606
Should clientCache be removed globally? Put it inside the vuePlugin method, so that the cache obtained by each vite configured vuePlugin is independent
Reproduction
https://stackblitz.com/~/github.com/wuzequanyouzi/test-returned
Steps to reproduce
vite.config
and setoptions.build.sourceMap
to inlineApp.vue
, such as addingconsole. log(123)
in the script. will trigger build, but will fail to build.System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: