简体   繁体   中英

When I create a project using Vue 2, no problems occur, but when I create project using Vue 3, I can't run the server. Can anyone help me to fix this?

I installed Vue Js after that I created a project using Vue 2 the file is created and the server run's no problem.

After that I created a project using Vue 3 file is created but when I run the server using npm run serve

I got error can anyone help me to solve this ?

I attached the image link of the error图像

As mentioned in https://stackoverflow.com/a/68235155/15393954 , I think the issue is @vue/compiler-sfc. Make sure it is at "^3.1.0", or just run npm upgrade.

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