-
-
Notifications
You must be signed in to change notification settings - Fork 380
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
Error: Converting circular structure to JSON #629
Comments
Hey @Flam3rboy 👋, |
After initial investigation I've found that If something does not define |
I had a similar issue to this, using @loadable/component@5.13.2, reverted to 5.13.1 and the issue doesn't come up. It's something to do with a component that uses the useContent react hook, which contains a reference to the parent component. When the code tries to create the cacheKey it would fail because of the circular structure. |
🐛 Bug Report
Sorry, I don't know why the bug happens, or how do I make a reproducable repo, but I've attached the error log.
Maybe you could use
circular-json
,flatted
or Mozilla's solution toJSON.stringify
the object?Runtime environment
or another format:
The text was updated successfully, but these errors were encountered: