Home > Back-end >  Yesterday, I created a vue scaffold project operation is no problem, why run error today?
Yesterday, I created a vue scaffold project operation is no problem, why run error today?

Time:10-03

CodePudding user response:

The solution
Take temporary solution:
Find your project folder YourProName \ node_modules \ vue - loader \ lib \ template - the compiler \ index js

//add the following code
if (! IsProduction) {
Code=prettier. The format (code, {semi: false, the parser: "Babylon"})
}

//is amended as:

if (! IsProduction) {
Code=prettier. The format (code, {semi: false, the parser: "Babel"})
}

CodePudding user response:


But there are still problems

CodePudding user response:

Run the command is wrong, NPM start dev, dev I write the project name