Failed to resolve vue/compiler-sfc
Chieffo2021 opened this issue · comments
Chieffo2021 commented
Versions
- webpack-to-vite: v1.0.6
- node: v14.16.0
Reproduction
https://github.com/gothinkster/vue-realworld-example-app
Additional Details
Steps to reproduce
After successfully converting the repo, execute npm run serve-vite
What is Expected?
start serve
What is actually happening?
$ vite
error when starting dev server:
Error: Failed to resolve vue/compiler-sfc.
@vitejs/plugin-vue requires vue (>=3.2.13) or @vue/compiler-sfc to be present in the dependency tree.
at resolveCompiler (D:\project\github-project\newbee-mall-vue3-app\node_modules\@vitejs\plugin-vue\dist\index.js:4069:11)
at Object.configResolved (D:\project\github-project\newbee-mall-vue3-app\node_modules\@vitejs\plugin-vue\dist\index.js:4768:39)
at D:\project\github-project\newbee-mall-vue3-app\node_modules\vite\dist\node\chunks\dep-f5552faa.js:74824:127
at Array.map (<anonymous>)
at resolveConfig (D:\project\github-project\newbee-mall-vue3-app\node_modules\vite\dist\node\chunks\dep-f5552faa.js:74824:35)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async createServer (D:\project\github-project\newbee-mall-vue3-app\node_modules\vite\dist\node\chunks\dep-f5552faa.js:60326:20)
at async CAC.<anonymous> (D:\project\github-project\newbee-mall-vue3-app\node_modules\vite\dist\node\cli.js:688:24)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.