LoginSignup
16
5

More than 1 year has passed since last update.

【Next.js】ChunkLoadError: Loading chunk node_modules_next_dist_client_dev_noop_js failedへの対処

Posted at

はじめに

Next.jsで開発をしていると、下記エラーが出現しました。
(画像はとり忘れてしまったので、次に出た時に更新します。)

エラー内容

Unhandled Runtime Error
ChunkLoadError: Loading chunk node_modules_next_dist_client_dev_noop_js failed.
(error: http://localhost:3000/_next/static/chunks/fallback/node_modules_next_dist_client_dev_noop_js.js)

解決策

一番上にある「.next」フォルダを削除する。
(コンパイルする度に生成されます。)
削除したらエラーは出なくなりました。

原因

詳しい原因はわかりません。すみません。
ただ、stackoverflowによると、キャッシュが原因なのではないかとのことでした。

参考

16
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
16
5