problem
When using vite for learning, you need to use router
, install it through npm install vue-router@4
, configure all files and start the error, as follows
solution
The solution is to delete the .vite
folder in the node_modules
file under the project.