使用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

相关文章
相关标签/搜索