美文网首页
wepack报错

wepack报错

作者: G_whk | 来源:发表于2018-05-14 15:18 被阅读0次
使用了extract-text-webpack-plugin插件后,编译出错.
C:\Users\王洪魁\Desktop\webpackdemo\node_modules\webpack\lib\Chunk.js:712
                throw new Error(
                ^

Error: Chunk.entrypoints: Use Chunks.groupsIterable and filter by instanceof Entrypoint instead
    at Chunk.get (C:\Users\王洪魁\Desktop\webpackdemo\node_modules\webpack\lib\Chunk.js:712:9)
    at C:\Users\王洪魁\Desktop\webpackdemo\node_modules\extract-text-webpack-plugin\dist\index.js:176:47
    at Array.forEach (native)
    at C:\Users\王洪魁\Desktop\webpackdemo\node_modules\extract-text-webpack-plugin\dist\index.js:171:18
    at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\Users\王洪魁\Desktop\webpackdemo\node_modules\tapable\lib\HookCodeFactory.js:24:12), <anonymous>:7:1)
    at AsyncSeriesHook.lazyCompileHook [as _callAsync] (C:\Users\王洪魁\Desktop\webpackdemo\node_modules\tapable\lib\Hook.js:35:21)
    at Compilation.seal (C:\Users\王洪魁\Desktop\webpackdemo\node_modules\webpack\lib\Compilation.js:890:27)
    at hooks.make.callAsync.err (C:\Users\王洪魁\Desktop\webpackdemo\node_modules\webpack\lib\Compiler.js:481:17)
    at _done (eval at create (C:\Users\王洪魁\Desktop\webpackdemo\node_modules\tapable\lib\HookCodeFactory.js:24:12), <anonymous>:9:1)
    at _err1 (eval at create (C:\Users\王洪魁\Desktop\webpackdemo\node_modules\tapable\lib\HookCodeFactory.js:24:12), <anonymous>:32:22)
    at _addModuleChain (C:\Users\王洪魁\Desktop\webpackdemo\node_modules\webpack\lib\Compilation.js:758:12)
    at processModuleDependencies.err (C:\Users\王洪魁\Desktop\webpackdemo\node_modules\webpack\lib\Compilation.js:697:9)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)
解决方案
npm install extract-text-webpack-plugin@next

相关文章

网友评论

      本文标题:wepack报错

      本文链接:https://www.haomeiwen.com/subject/tgqjdftx.html