This usually happensbecauseyour environment has changed since running `npminstall`.Run `npm rebuild node-sass` to download thebindingfor your current environment. 查询版本号,或者直接找package.json查找版本号 node和node-sass版本关系 NodeJS node-sass version node-sass sass-loader node -v 16.4.0 win1...
node和node-sass版本关系 先检查一下自己的node版本 node -v v14.7.0 我的是14.7,按照版本对应关系,需要安装node-sass版本4.14 根据版本对应表卸载后重新安装 npm uninstall node-sass npm install node-sass@4.14.1 我没有找到node-sass与sass-loader版本对应关系,但是实际中安装7.3的版本可正常运行 npm uninstall...
先安装node-sass, 再安装sass-loader, 一般你运行项目npm run dev 的时候会出现这个报错Module build failed: Error: Node Sass version 6.0.0 is incompatible with ^4.0.0., 就是node-sass和sass-loader版本过高了, 需要安装匹配的版本 安装sass(成功的匹配版本, node-sass@4.14.1 sass-loader@7.3.1) npm...
1.node 版本与node-sass、sass-loader版本不兼容问题 报错:Node Sass version 7.0.1 is incompatible with ^4.0.0. 参考博文:node16.0版本 对应node-sass sass-loader 各个版本号 亲测node v16.16.0 版本配置以下node-sass和sass-loader版本,项目可以正常运行。 "node-sass": "^6.0.1", "sass-loader": "^...
Operating System: macOS 11.2 Node Version: v15.2.0 NPM Version: npm v7.0.10 webpack Version: 4.46.0 sass-loader Version: 11.0.0 vue: 3.0.0 Expected Behavior Start the vue 3 app without error. Actual Behavior Syntax Error: TypeError: this...
Operating System: Windows 10 Node Version: 12.14.1 NPM Version: 6.14.8 webpack Version: 5.10.3 sass-loader Version: 10.1.0 Expected Behavior additionalData should work like prependData. Actual Behavior additionalData causes compile error...
npm install sass-loader@7.3.1 --save-dev 以上笔记记于2019年10月25日。 更新 最近新建项目遇到的新问题: 2021年7月本机安装配置 vue+element+sass时候,sass报错如下: Module build failed: Error: Node Sass version 6.0.1 is incompatible with ^4.0.0. ...
Sass loader for webpack. Latest version: 16.0.3, last published: 24 days ago. Start using sass-loader in your project by running `npm i sass-loader`. There are 12892 other projects in the npm registry using sass-loader.
If Alex's answer doesn't work for you, remove sass-loader (npm uninstall sass-loader) then reinstall it (npm i sass-loader.) Worked for me as I had an older version of sass-loader. Share Improve this answer Follow answered Oct 2, 2019 at 4:46 Omar 12611 gold badge33 silver badg...
loader: 'sass-loader', options: { sourceMap: true, }, }, ], }, ], }, };ℹ In some rare case node-sass can output invalid source maps (it is node-sass bug), to avoid try to update node-sass to latest version or you can try to set the outputStyle option to compressed value...