28
37

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Next / React】「Unhandled Runtime Error.ChunkLoadError: Loading chunk node_modules_next_dist_client_dev_noop_js failed」エラーが出た

Last updated at Posted at 2022-04-07

個人の備忘録です。

環境

  • Node.js 16.10.0
  • Next.js 11.1.3
  • React.js v17.0.2

現象

yarn dev でブラウザ表示をしたら以下のようなエラーが出ました。

Screen Shot 2022-04-07 at 19.05.50.png

原文
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 フォルダーを削除
  • yarn dev で再度ブラウザ表示
  • ブラウザキャッシュの削除 (Shift+F5 / Cmd+Shift+R)

文献

28
37
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
28
37

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?