-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
staticData
makes the page compilation fail in Next.js
#3263
Comments
For info I'm using the latest version of next and tolgee |
I'll try to reproduce |
I've tried to replicate your issue in this branch, but no luck 🙁 https://github.com/tolgee/next-example/tree/stepangranat/baptistearno-replication Would you be able to alter the example, so it gives the same error, or provide your own full example? |
Ok, so I ultimately solve the freeze error without really knowing how. But maybe this is related to the new issue I managed to trigger on the replication. It is happening when the application has Chakra UI components (most likely related to emotion) + tolgee with
Here is the reproduction: https://github.com/baptisteArno/next-example/tree/stepangranat/baptistearno-replication You need to navigate to |
Yeah it looks like some sort of bug. I'll dig into it. |
It seems like chakra had problem with Tolgee dev tools, which is inserting extra element into body to display in-context dialog. I've prepared a fix, where we insert dev tools lazily and not on first render. It fixed the error in your example. |
Not sure if this was connected to the infinite loop you got, but I guess it's possible. |
I followed the guide for Next.js implementation: https://tolgee.io/js-sdk/integrations/react/ssr/next
But as soon as I add
staticData
in the init function, the page compilation fails (as if it were stuck in an infinite loop).Are you able to reproduce?
tolgee.ts:
_app.tsx:
The text was updated successfully, but these errors were encountered: