webpack "extract-text-webpack-plugin" 打包报错loader is used without the corresponding plugin

来源:互联网 发布:数据挖掘 王灿 42讲 编辑:程序博客网 时间:2024/05/23 22:52

有个项目用到了vue+webpack ,run bulid的时候一直报

[1] ERROR in ../src/containers/Main.scss
[1] Module build failed: Error: "extract-text-webpack-plugin" loader is used without the corresponding plugin, refer to https://github.com/webpack/extract-text-webpack-plugin for the usage example
[1] at Object.module.exports.pitch (/Users/manueldupont/react-isomorphic-starterkit/node_modules/extract-text-webpack-plugin/loader.js:21:9)
[1] @ ../src/containers/Main.js 25:12-34

后来发现是nodejs的版本太高,我用的6.x的版本,降到4.x版本就不报错了,具体原因未知



1 0
原创粉丝点击