npm run dev stuck

Problem:
vscode gets stuck compiling with npm run dev
insert image description here

Reason:
There is a wrong type of code (there are various code errors on the Internet, it may be a problem with the configuration, it may be that the resource does not exist, or the format may be wrong)

Solution:
first press Ctrl+C to interrupt the compilation,
go back to the situation where there is no problem as much as possible, then remember to press Ctrl+S to save the file, and then run it again

Guess you like

Origin blog.csdn.net/m0_52070517/article/details/127209116