Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

console.error in suspense cause infinite loop #74817

Open
elliason opened this issue Jan 13, 2025 · 0 comments
Open

console.error in suspense cause infinite loop #74817

elliason opened this issue Jan 13, 2025 · 0 comments

Comments

@elliason
Copy link

Link to the code that reproduces this issue

https://github.com/elliason/next-error-log-suspense-error

To Reproduce

  1. create a new next app using create-next-app
  2. Create a client component "Test"
  3. Wrap the Test component in Suspense boundary
  4. Put console.error("Test"); in the Test component
  5. Render the Test component in home page.tsx
  6. Run npm dev

Current vs. Expected behavior

Now there is an infinite loop of never ending error messages.

Image

Image

Provide environment information

Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP Tue Nov 5 00:21:55 UTC 2024
  Available memory (MB): 31975
  Available CPU cores: 16
Binaries:
  Node: 23.3.0
  npm: 10.9.0
  Yarn: N/A
  pnpm: 9.14.4
Relevant Packages:
  next: 15.1.4 // Latest available version is detected (15.1.4).
  eslint-config-next: 15.1.4
  react: 19.0.0
  react-dom: 19.0.0
  typescript: 5.7.3
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

Not sure

Which stage(s) are affected? (Select all that apply)

next dev (local)

Additional context

No response

@elliason elliason added the bug Issue was opened via the bug report template. label Jan 13, 2025
@samcx samcx removed the bug Issue was opened via the bug report template. label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants