Sass loader occurs when uniapp is packaged and compiled
Error message: Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
As shown below:
Solution: sass-loader version problem
The original version was:
"sass-loader": "^7.1.0",
Amend to read:
"sass-loader": "8.0.2",
As shown in the figure:
Similar Posts:
- How to Solve Error: ENOENT: no such file or directory, scandir ‘..\node_modules\node-sass\vendor’
- Module build failed: TypeError: this.getResolve is not a function at Object.loader node-sass Install Error
- [Solved] Error:Node Sass version 6.0.0 is incompatible with ^4.0.0
- Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 7.x
- [Solved] Module build failed: Error: Cannot find module ‘node-sass’
- Module build failed: Error: Cannot find module ‘node-sass’
- [Solved] Vue installs less Error: Failed to compile with 1 errors
- [Solved] HBuilderX Run uniapp Error: SassError: Invalid CSS after “}”: expected selector, was “,”
- NPM run dev Error: this.getOptions is not a funtion
- Use sass and less in Vue and solve the problem of error reporting (this. Getoptions is not a function)