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
11:53:12 [vite] (client) Pre-transform error: shared.genCacheKey is not a function
Plugin: vite:vue
File: E:/Workspace/mainsite/src/App.vue
11:53:12 [vite] Internal server error: shared.genCacheKey is not a function
Plugin: vite:vue
File: E:/Workspace/mainsite/src/App.vue
at Object.parse$1 [as parse] (E:\Workspace\mainsite\node_modules\@vue\compiler-sfc\dist\compiler-sfc.cjs.js:1764:28)
at createDescriptor (file:///E:/Workspace/mainsite/node_modules/@vitejs/plugin-vue/dist/index.mjs:71:43)
at transformMain (file:///E:/Workspace/mainsite/node_modules/@vitejs/plugin-vue/dist/index.mjs:2421:34)
at TransformPluginContext.transform (file:///E:/Workspace/mainsite/node_modules/@vitejs/plugin-vue/dist/index.mjs:3024:16)
at EnvironmentPluginContainer.transform (file:///E:/Workspace/mainsite/node_modules/vite/dist/node/chunks/dep-DrOo5SEf.js:47663:19)
at async loadAndTransform (file:///E:/Workspace/mainsite/node_modules/vite/dist/node/chunks/dep-DrOo5SEf.js:41320:27)
at async viteTransformMiddleware (file:///E:/Workspace/mainsite/node_modules/vite/dist/node/chunks/dep-DrOo5SEf.js:42796:24)
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
plugin-vue is incompatible with vite, will causes an internal server error and unable to run
vite
.Reproduction
just use npm create vite@latest can reproduce
Steps to reproduce
npm create vite@latest
to create a vue projectyarn install
yarn dev
System Info
Used Package Manager
yarn
Logs
Click to expand!
Validations
The text was updated successfully, but these errors were encountered: