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

来源:3-2 配置vue的jsx写法以及postcss

慕田峪8497712

2018-07-18 15:17

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

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

写回答 关注

1回答

  • 慕田峪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"

    ]

    }


Vue+Webpack打造todo应用

用前端最热门框架Vue+最火打包工具Webpack打造todo应用

84605 学习 · 787 问题

查看课程

相似问题