问答详情
源自:3-2 配置vue的jsx写法以及postcss

报错 throw new Error("Module '" + loader.path + "' is not a loader (must have normal or pitch function)");

报错   throw new Error("Module '" + loader.path + "' is not a loader (must have normal or pitch function)");

https://img2.mukewang.com/5b4ee9530001d6f412350727.jpg

提问者:慕田峪8497712 2018-07-18 15:17

个回答

  • 慕田峪8497712
    2018-07-18 16:13:33

    已解决。之前加多了node-sass,删掉就好

    {

    test: /\.(scss|sass)$/,

    use: [

    "style-loader",

    "css-loader",

    { //浏览器前缀

    loader: 'postcss-loader',

    options: {

    sourceMap: true

    }

    },

    "sass-loader"

    ]

    }