wepack报错

2018-05-14  本文已影响0人  G_whk
使用了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
上一篇 下一篇

猜你喜欢

热点阅读