ブログ

BLOG

[Webpack4 アップデートエラー] 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

Webpack4系にすると、エラーが起きたので解決策を。

現状バージョン

"webpack": "^4.7.0",
"extract-text-webpack-plugin": "^3.0.2"

エラー内容

Error: Chunk.entrypoints: Use Chunks.groupsIterable and filter by instanceof Entrypoint instead
以下省略・・・
npm ERR! code ELIFECYCLE
npm ERR! errno 1
以下省略・・・

どうやらextract-text-webpack-pluginが原因っぽい。
extract-text-webpack-pluginはWebpackのバージョンが4以上だとまだうまく作動しないみたい。

解決策

npm install -D extract-text-webpack-plugin@next

これでnextのバージョンをインストールすると直る。

参考サイト: “react-scripts build” gives webpack error: “Chunk.entrypoints: Use Chunks.addGroup instead”

お問い合わせ・ご相談CONTACT

オクワスでは、Webを通して魅力を最大限に伝えるお手伝いをしております。ホームページ制作やWebからの集客などでのお困りごと、Web開発で人手が足りないなどございましたら一度お気軽にご連絡ください。

お問い合わせフォームまたは𝕏のDMからご相談お受けしております。

お問い合わせフォームへDMからご連絡ください
© 2015 - 2024 Okuda Kouki