D:\ideaproject\cqcomponent\node_modules\extract-text-webpack-plugin\dist\index.js:188
chunk.sortModules();
^
TypeError: chunk.sortModules is not a function
at D:\ideaproject\cqcomponent\node_modules\extract-text-webpack-plugin\dist\
index.js:188:19
at D:\ideaproject\cqcomponent\node_modules\async\dist\async.js:3083:16
at eachOfArrayLike (D:\ideaproject\cqcomponent\node_modules\async\dist\async
.js:1003:9)
at eachOf (D:\ideaproject\cqcomponent\node_modules\async\dist\async.js:1051:
5)
at Object.eachLimit (D:\ideaproject\cqcomponent\node_modules\async\dist\asyn
c.js:3145:5)
at Compilation.<anonymous> (D:\ideaproject\cqcomponent\node_modules\extract-
text-webpack-plugin\dist\index.js:184:27)
at Compilation.applyPluginsAsyncSeries (D:\ideaproject\cqcomponent\node_modu
les\tapable\lib\Tapable.js:142:13)
at Compilation.seal (D:\ideaproject\cqcomponent\node_modules\webpack\lib\Com
pilation.js:579:8)
at D:\ideaproject\cqcomponent\node_modules\webpack\lib\Compiler.js:493:16
at D:\ideaproject\cqcomponent\node_modules\tapable\lib\Tapable.js:225:11
at _addModuleChain (D:\ideaproject\cqcomponent\node_modules\webpack\lib\Comp
ilation.js:481:11)
at processModuleDependencies.err (D:\ideaproject\cqcomponent\node_modules\we
bpack\lib\Compilation.js:452:13)
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickCallback (internal/process/next_tick.js:104:9)
打包时出现上面的错误,应该是什么原因
extract-text-webpack-plugin
这个模块的版本和webpack不对应,装2.1.2的问题就解决了
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。