This error comes from sass loader. Semver does not match because node sass @latest is v5.0.0 and sass loader expects ^ 4.0.0
there is an unresolved issue in their repository that needs to be fixed
Solution:
uninstall node sass
npm uninstall node-sass // If an error is reported during unloading, it is recommended to directly change node sass to 4.14.1 in package.json and delete node from the folder_ Delete the module folder and NPM install
Similar Posts:
- Module build failed: TypeError: this.getResolve is not a function at Object.loader node-sass Install Error
- How to Solve Error: ENOENT: no such file or directory, scandir ‘..\node_modules\node-sass\vendor’
- Mac uniapp Compile Error: sass-loader [How to Solve]
- NPM run dev Error: this.getOptions is not a funtion
- [Solved] Module build failed: Error: Node Sass version 6.0.0 is incompatible with ^4.0.0.
- [Solved] Module build failed: from ./node_modules/mini-css-extract-plugin/dist/loader.js
- Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 7.x
- Node sass installation error [How to Solve]
- [Solved] Vue installs less Error: Failed to compile with 1 errors
- Use sass and less in Vue and solve the problem of error reporting (this. Getoptions is not a function)