webpack4.x 报错:Error: Chunk.entrypoints: Use Chunks.groupsIterable and filter by instanceof Entrypoin
在配置webpack4报错:Error: Chunk.entrypoints: Use Chunks.groupsIterable and filter by instanceof Entrypoint instead时,应该是插extract-text-webpack-plugin的版本问题
解决方案如下:
npm i -D extract-text-webpack-plugin@next
或者采用
npm install -save-dev extract-text-webpack-plugin@next
安装后的版本是(package.json):
"devDependencies": {
......
"extract-text-webpack-plugin": "^4.0.0-beta.0",
......
},