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

option to treat undefined as null #86

Closed
bombillazo opened this issue Jun 8, 2023 · 1 comment
Closed

option to treat undefined as null #86

bombillazo opened this issue Jun 8, 2023 · 1 comment

Comments

@bombillazo
Copy link

Hello, can we add an option to the serializeError function so that it does not error out when an undefined is encountered?

Error: Error serializing `.error.status` returned from `getServerSideProps`.
Reason: `undefined` cannot be serialized as JSON. Please use `null` or omit this value.

Sometimes we are dealing with 3rd party errors so we cannot modify them.

@bombillazo
Copy link
Author

Sorry, wrong library, this is caused by Next.JS and solve it with this.

@bombillazo bombillazo closed this as not planned Won't fix, can't repro, duplicate, stale Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant