This problem occurred when using webpack 4 to package less file. It was unable to parse this file. After careful checking the code, we found that this is missing from the regular representation in webpack.config.js file, as shown in the figure below. Just add this.
Similar Posts:
- npm ERR! missing script: dev [How to Solve]
- npm ERR! missing script: dev [How to Solve]
- Vue Project: npm run dev :missing script:dev [How to Solve]
- How to Solve Vue Space Line Wrap Error
- npm WARN saveError ENOENT: no such file or directory, open ‘C:\Users\James\package.json’
- Webpack reports an error when using the cleanwebpackplugin plug-in
- npm ERR! missing script: build [How to Solve]
- Vue solves the problem of space and blank line error reporting
- Module parse failed: Unexpected character ‘@’ (1:0)
- [Solved] Fatal error: Call to undefined function json_decode()