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

后端 未结 7 483
别跟我提以往
别跟我提以往 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:24

    change data to prependData. Final result (vue.config.js):

    module.exports = {
        css: {
            loaderOptions: {
                sass: {
                    prependData: `@import "@/sass/variables.sass"`
                }
            }
        }
    }
    
    0 讨论(0)
提交回复
热议问题