1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Next.js が何もしていないのに壊れました

Last updated at Posted at 2024-06-21

壊れていない。

環境

  • Windows 10 Enterprise 22H2
  • Windows PowerShell 5.1.19041.4291

現象

開発サーバーを起動して意気揚々と http://localhost:3000/ にアクセス。

PS C:\Users\Foo> cd /dev
PS C:\dev\next-app> npm run dev

> next-app@0.1.0 dev
> next dev

  ▲ Next.js 14.2.4
  - Local:        http://localhost:3000

 ✓ Starting...
 ✓ Ready in 1989ms

localhost_3000_.png

Application error: a client-side exception has occurred (see the browser console for more information).

ターミナルにぶわーっとエラーが流れてえぐぅーっとなった。

原因

ターミナルのカレントディレクトリまでのパスに実際の大文字・小文字と差異があった。
今回の例では /dev が誤りで正しくは /Dev であった。

PS C:\Users\Foo> cd /Dev
PS C:\Dev\next-app> npm run dev

> next-app@0.1.0 dev
> next dev

 ▲ Next.js 14.2.4
 - Local:        http://localhost:3000

✓ Starting...
✓ Ready in 2.1s

localhost_3000_.png

参考

Nextjs Error: Application error: a client-side exception has occurred (see the browser console for more information)

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?