admin管理员组文章数量:1297026
Im using quasar together with Vite. After installing quasar with yarn create quasar
I get the following warning in the console.
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__ is not explicitly defined.
You are running the esm-bundler build of Vue, which expects these
pile-time feature flags to be globally injected via the bundler
config in order to get better tree-shaking in the production
bundle.
How can I get rid of it? I cannot find any information on where I shall define this in Quasar Framework
Im using quasar together with Vite. After installing quasar with yarn create quasar
I get the following warning in the console.
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__ is not explicitly defined.
You are running the esm-bundler build of Vue, which expects these
pile-time feature flags to be globally injected via the bundler
config in order to get better tree-shaking in the production
bundle.
How can I get rid of it? I cannot find any information on where I shall define this in Quasar Framework
Share Improve this question asked Jan 5, 2024 at 16:52 acrosceneacroscene 1,0674 gold badges22 silver badges54 bronze badges1 Answer
Reset to default 11This warning starts appearing after upgrading to Vue 3.4 without upgrading all other required dependencies, namely @vitejs/plugin-vue
, which should be upgraded to ^5.0.0. This is documented under Potential Actions Needed when upgrading to Vue 3.4.
With Quasar, you can not upgrade this package directly since it's not a top-level dependency of Quasar projects. Until the Quasar team releases an update, you will need to set the flag yourself
quasar.config.js
build: {
extendViteConf(viteConf) {
viteConf.define.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__ = false
},
}
本文标签: javascriptQuasar VUEPRODHYDRATIONMISMATCHDETAILS is not definedStack Overflow
版权声明:本文标题:javascript - Quasar VUE_PROD_HYDRATION_MISMATCH_DETAILS is not defined - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741641814a2389960.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论