-
Notifications
You must be signed in to change notification settings - Fork 253
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
Stitches throwing exceptions "TypeError - Converting circular structure to JSON" #832
Labels
Comments
Merged
Hey, I created a PR (#836) I've forked your sandbox, and updated the dependency to use the build from that PR. Here's a sandbox: https://codesandbox.io/s/circular-json-reproduction-forked-w3cr5?file=/package.json Looks like that fixes the problem |
this is great! thanks for the fast fix! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
We use stitches at attentive to power our internal component library and style system, we love it, so first off, thank you! Part of what we do at attentive is render UI on our clients' sites, we recently switched to using our new internal library, powered by stitches, and ran into this circular dependency issue.
Describe the bug
When any circular dependency exists in the document,
createStitches
failsTo Reproduce
I've created a code sandbox that reproduces the issue here: https://codesandbox.io/s/circular-json-reproduction-0i5lp?file=/src/App.tsx
to reproduce locally:
Expected behavior
Should be able to handle circular JSON
Screenshots
with a circular dep:
without
System information
Note
Related to this issue was recently closed: #665 (comment)
The text was updated successfully, but these errors were encountered: