The project startup of vue3 crawling pit reports an error Cannot find module'vue-loader-v16/package.json

Today, I created a new vue3 project and prepared to write a magnifying glass component for an e-commerce project. After npm run serve, I reported an error directly. I
Insert picture description here
thought it might be a lack of dependencies, so I executed npm i
Insert picture description here
to continue running, or reported an error and
Insert picture description here
went to stackoverflow to find it and found that some people also have it. For such a problem, someone suggested that this method can be used to solve the problem:
Insert picture description here
stackoverflow original link

So execute npm i --save-dev vue-loader-v16, get it done!
Insert picture description here

Guess you like

Origin blog.csdn.net/dyw3390199/article/details/114745076