ReferenceError: structuredClone is not defined

I have orderbook smart contract where I can place, remove and match orders
During match func call sometimes I get this error, tx result is failing with error but match anyway is being done. What does this error mean?

What version of fuels are you running? Also I believe structuredClone was added in TypeScript 4.7 so please make sure you are running a version later than that.

1 Like

We had this issue in the past.

Check your node version, structuredClone was added in NodeJS 17.

1 Like