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
failed to load config from C:\Users\Miau\Documents\PA\vite-issue\packages\simple\vite.config.ts
error when starting dev server:
Error: @vitejs/plugin-vue requires vue (>=3.2.13) or @vue/compiler-sfc to be present in the dependency tree.
at Object.<anonymous> (C:\Users\Miau\Documents\PA\vite-issue\.yarn\__virtual__\@vitejs-plugin-vue-virtual-549d592d48\0\cache\@vitejs-plugin-vue-npm-1.9.3-b28928ee51-b987535135.zip\node_modules\@vitejs\plugin-vue\dist\index.js:4088:11)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.external_module_.Module._load (C:\Users\Miau\Documents\PA\vite-issue\.pnp.cjs:11821:14)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:93:18)
at Object.<anonymous> (C:\Users\Miau\Documents\PA\vite-issue\packages\simple\vite.config.ts:30:36)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.require.extensions.<computed> [as .ts] (C:\Users\Miau\Documents\PA\vite-issue\.yarn\__virtual__\vite-virtual-2a5de8907d\0\cache\vite-npm-2.6.7-13d03f8d6e-cf395366e4.zip\node_modules\vite\dist\node\chunks\dep-713b45e1.js:68644:20)
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 https://github.com/vuejs/vue-next instead.
Describe the bug
it's not work if move project into workspace, vue plugin seems blind that cannot find vue or compiler-sfc package.
now, I just use pnpm instead, and it works.
Reproduction
yarn
cd packages/simple
yarn dev
System Info
Used Package Manager
yarn
Logs
Validations
The text was updated successfully, but these errors were encountered: