简体   繁体   中英

after adding vue3 the npm run serve does not work

i have a typescript project with vue and after this

vue add vue-next

the project can not run with

npm run serve

the error given is:

Error: Cannot find module '@vue/compiler-sfc/package.json'

You are missing a package vue3 requires.

Run:

npm install --save-dev @vue/compiler-sfc

Then:

npm run serve

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM