Tag Archives: sassloader

Mac uniapp Compile Error: sass-loader [How to Solve]

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: