When manually building a Vue3.0 + Vite project without using any CLI. All the file code in the project is very normal, and any change to the code will definitely report an error
Package. The json code
This is an error message
Later I found someone on Github asking the same question without offering a solution github.com/vitejs/vite… After comparing my own projects with the CLI, I found that the error was not reported as long as the @vue/ Compiler-sFC dependency was added.
Record it here!!