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
thought it might be a lack of dependencies, so I executed npm i
to continue running, or reported an error and
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:
stackoverflow original link
So execute npm i --save-dev vue-loader-v16
, get it done!