flightcontrolhq/superjson

An error occurs when serializing the array with un-serialize-data

lwt09 opened this issue · 2 comments

An error occurs when executing the code below
superjson.stringify({ data: ['data1', new Error('test')] })

version; "superjson": "^2.2.1"

image image

In what environment are you executing this? Is it Node, a Browser, Bun, …?

In what environment are you executing this? Is it Node, a Browser, Bun, …?您是在什么环境中执行这个操作?是在 Node、浏览器、Bun 等环境中吗?

I'm very sorry, the problem has been solved. The environment I'm running does not support URL... It's a castrated version of the JS environment.