This is because the parser names of different versions of prettier are not the same, so it cannot be parsed. You just need to node_ Modules in Vue loader The parser in the prettier configuration file can be changed from Babylon to Babel.
Step 12345 as shown in the figure below
- Module build failed: Error: Couldn’t find preset “es2015” relative to directory
- Solution to build error in Vue project (error in static/JS)/vendor.xxxxx.js from UglifyJs）
- The vue3 project Error: Cannot find module’vue-loader-v16/package.json’
- NPM run dev runs the Vue project and reports an error: Node Sass does not yet support your current environment
- The addition, deletion and modification of DOM in JS Foundation
- Vue-cli2 sub environment packaging
- How to Solve Node start error listen eacces 0.0.0.0:810
- package.json Scripts configuration environment variable distinguishes development environment from production environment
- Solve the problem of repeatedly clicking the same route console in Vue to report an error
- [ERR_INVALID_ARG_TYPE]: The “path“ argument must be of type string. Received undefined error
- Syntax Error: Error: PostCSS received undefined instead of CSS string
- After installing NPM, NRM LS reports an error throw new err_INVALID_ARG_TYPE(name, ‘string‘, value)
- When starting Vue project: cannot find module ‘webpack cli/bin/config yargs’ error resolution
- “Failed to load resource: net::ERR_FILE_NOT_FOUND” error. The project created by vue-cli 3.0 can run under dev, and an error is reported after packaging, and the page is blank.
- VUE: How to Solve NPM Always Install Error
- [Vue warn]: Error in beforeDestroy hook: “Error: [ElementForm]unpected width
- [Weex]Error in creating project NPM: unable to load file D:\program files\nodejs\node_ global\ weex.ps1 Because scripts are not allowed to run on this system.
- Difference between innerHTML and innerText
- Docker Quickstart Terminal Error: No default Boot2Docker ISO found locally
- JS bug Log Uncaught TypeError: Cannot read property ‘previoustSibling‘ of null