You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you fetch an API endpoint in Next.js you get a DataCloneError. Looks like a function isn't serialized for postMessage. If you then "open in CodeSandbox", the error doesn't occur.
What were you doing when the problem occurred?
Trying to fetch an endpoint.
What steps can we take to reproduce the problem?
Click the button in the sandbox to see the error.
If you "open in CodeSandbox" from the Sandpack demo, you'll see the code works fine there, just not in Sandpack.
Bug report
Packages affected
Description of the problem
When you fetch an API endpoint in Next.js you get a
DataCloneError
. Looks like a function isn't serialized forpostMessage
. If you then "open in CodeSandbox", the error doesn't occur.What were you doing when the problem occurred?
Trying to fetch an endpoint.
What steps can we take to reproduce the problem?
Click the button in the sandbox to see the error.
If you "open in CodeSandbox" from the Sandpack demo, you'll see the code works fine there, just not in Sandpack.
Link to sandbox: link (optional)
Your Environment
PS: Love the project, thanks for your work on it!
The text was updated successfully, but these errors were encountered: