Sass Loader Error: Invalid options object that does not match the API schema

后端 未结 7 541
别跟我提以往
别跟我提以往 2020-12-16 09:40

I\'m using VueJS with the framework VuetifyJS (v2.0.19). I\'m getting this error after running npm run serve:

Sass Loader has been initialise

7条回答
  •  离开以前
    2020-12-16 10:19

    I had the same issue when upgrading to sass-loader 10. I resolved it by replacing prependData with additionalData as per below:

    {
      test: /\.scss$/,
      loader: 'sass-loader',
      options: {
        additionalData: `@import 'src/scss/helpers/variables';`
      }
    }
    

提交回复
热议问题