Vue installs sass loader directly, and node-sass reports an error
An error will be reported when using NPM I sass loader node sass - d
to install directly. This is because the version of SASS loader is too high. Please install sass loader version 7.3.1
If you also need to customize the theme color, you happen to add a file named element variables.SCSS
directly under SRC instead of using the command. Then you will encounter the incompatibility of node-sass versions later. On October 28, 2021, I installed version 6.0.1 here. At this time, I can change it to version 4.14.1
Read More:
- NPM run dev runs the Vue project and reports an error: Node Sass does not yet support your current environment
- [Solved] This.getoptions is not a function when installing sass loader and less loader
- [Solved] Node sass version 7.0.0 is incompatible with ^ 4.0.0 | ^ 5.0.0 | ^ 6.0.0
- [Solved] error C:\Users\HP\Desktop\VueProject\vue_cli\node_modules\node-sass: Command failed.Exit code: 1
- [Solved] Vue Error: Module build failed Error Node Sass version 6.0.1 is incompatible with ^4.0.0.
- [Solved] Error: ENOENT: no such file or directory, scandir ‘..\node_modules\node-sass\vendor‘
- [Solved] Error: Node Sass does not yet support your current environment
- [Solved] Syntax Error: Error: Node Sass does not yet support your current environment:
- [Solved] Syntax Error: Error: Node Sass does not yet support your current environment: Windows 64-bit with
- [Solved] Syntax Error: Error: Node Sass does not yet support your current environment: OS X Unsupported archi
- [Solved] Vue Element Date plug-in reports an error in form validation
- The toast light prompt of vant in Vue reports an error
- The vue3 project Error: Cannot find module’vue-loader-v16/package.json’
- After Vue is packaged to the server, the static resource path reports an error
- How to Solve VUE Error: Avoid mutating a prop directly since the value will be overwritten …
- Vue modifies the value passed by props error: Avoid mutating a prop directly since the value will be overwritten whenever the par
- [Solved] Vue calls style loader error: Module build failed: CssSyntaxError
- [Solved] Uniapp project use vant icon Error: (module build failed from./node_modules/postcss loader/SRC/index)
- Vue Use scss Error: this.getOptions is not a function [How to Solve]
- How to Solve Vue project Startup Error (Node Upgrade issue)