Failed to resolve loader: sass-loader You may need to install it.
时间: 2023-11-11 13:47:54 浏览: 102
解决vue cli4升级sass-loader(v8)后报错问题
5星 · 资源好评率100%
To resolve the "Failed to resolve loader: sass-loader" error, you need to make sure that the sass-loader is installed in your project.
You can install sass-loader by running the following command in your project directory:
```
npm install sass-loader --save-dev
```
If you are using Yarn, you can run:
```
yarn add sass-loader --dev
```
After installing sass-loader, you might need to restart your development server or bundler for the changes to take effect.
阅读全文