使用webpack4.0時遇到錯誤Error: Chunk.entrypoints: Use Chunks.groupsIterable and filter by instanceof Entryp

在使用webpack4.0以上打包工具時,會遇到一個問題,那就是安裝3.x extract-webpack-plugin 插件時,webpack

會遇到不支持的問題,而且會拋出錯誤信息 Error: Chunk.entrypoints: Use Chunks.groupsIterable and filter by instanceof Entrypoint insteadweb

解決方法以下:npm

1.直接在控制檯輸入:npm install --save-dev extract-text-webpack-plugin@next 工具

2.若是1無效,請嘗試直接輸入:npm install --save-dev extract-text-webpack-plugin@4.0.0-beta.0spa

在你的webpack.config.js中檢查是否成功添加:插件

以後再次運行webpack-plugin插件就不會報錯啦。blog

相關文章
相關標籤/搜索