使用了extract-text-webpack-plugin插件后,編譯出錯(cuò).
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
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。