-
Notifications
You must be signed in to change notification settings - Fork 15
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
BigInt: Error: Circular structure in "getInitialProps" #63
Closed
Comments
|
Skn0tt
added a commit
to Skn0tt/next.js
that referenced
this issue
Apr 12, 2021
Since `-1` is truthy, every JSON.stringify error is mistaken to be `circular structure`. This commit fixes that behaviour, so that other errors like `Do not know how to serialize Bigint` (see blitz-js/babel-plugin-superjson-next#63) aren't swallowed.
8 tasks
Skn0tt
added a commit
to flightcontrolhq/superjson
that referenced
this issue
Apr 12, 2021
@Skn0tt thanks also for filing the bug fix in Next.js. Nice one! |
Skn0tt
added a commit
to flightcontrolhq/superjson
that referenced
this issue
Apr 13, 2021
Skn0tt
added a commit
to Skn0tt/next.js
that referenced
this issue
Apr 13, 2021
This may be thought of as being a pretty contrived example, but it's exactly what happened in blitz-js/babel-plugin-superjson-next#63.
ijjk
added a commit
to vercel/next.js
that referenced
this issue
Feb 10, 2022
* Fix bug with "Circular Structure" error Since `-1` is truthy, every JSON.stringify error is mistaken to be `circular structure`. This commit fixes that behaviour, so that other errors like `Do not know how to serialize Bigint` (see blitz-js/babel-plugin-superjson-next#63) aren't swallowed. * Add integration test This may be thought of as being a pretty contrived example, but it's exactly what happened in blitz-js/babel-plugin-superjson-next#63. Co-authored-by: JJ Kasper <jj@jjsweb.site>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
It seems that whenever I have a
BigInt
value in my data I get a server error:The versions I am using are:
Here's a minimal reproduction:
The text was updated successfully, but these errors were encountered: