webpack4.x 報錯:Error: Chunk.entrypoints: Use Chunks.groupsIterable and filter by instanceof Entrypoint instead


在配置webpack4報錯:Error: Chunk.entrypoints: Use Chunks.groupsIterable and filter by instanceof Entrypoint instead時,應該是插extract-text-webpack-plugin的版本問題

解決方案如下:

npm install extract-text-webpack-plugin@next

安裝后的版本是(package.json):

 "devDependencies": {
    "css-loader": "^0.28.11",
    "extract-text-webpack-plugin": "^4.0.0-beta.0",
    "file-loader": "^1.1.11",
    "style-loader": "^0.21.0",
    "url-loader": "^1.0.1"
}

再次webpack 通過..

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM