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

Nextjs 15.0.3 and react 19 throws Cannot update a component (HotReload) while rendering a different component #1294

Open
dvarjun opened this issue Dec 1, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@dvarjun
Copy link

dvarjun commented Dec 1, 2024

Describe the bug
After upgrading to nextjs15.0.3 and react 19, custom components in the editor throws console error and here is the stack trace:

Cannot update a component (HotReload) while rendering a different component (Alert). To locate the bad setState() call inside Alert, follow the stack trace as described in https://react.dev/link/setstate-in-render at hook.js:608 Error Component Stack
at ReactNodeView ()
at App (App.tsx:126:36)
at Suspense ()
at LoadableComponent ()
at main ()
at Home ()
at body ()
at html ()
at RootLayout [Server] ()

To Reproduce
Migrate custom blocks example to nextjs environment and browser console

Here is the stackblitz link:
https://stackblitz.com/~/github.com/dvarjun/nextjs15-react19-blocknotejs-bug?view=editor

@dvarjun dvarjun added the bug Something isn't working label Dec 1, 2024
@ezelbanaan
Copy link

duplicate of #1287 right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants