Hello,
I have a problem when I use the ârunContractFunctionâ or âgetNFTMetadataâ function on the client side (front) in React, I get the following error message:
react_devtools_backend.js:4012 TypeError: Right-hand side of âinstanceofâ is not an object
at isApiRequestError (ApiRequestError.ts:12:1)
at RequestController.makeError (RequestController.ts:71:1)
at RequestController. (RequestController.ts:56:1)
at step (ApiRequestError.ts:31:1)
at Object.throw (ApiRequestError.ts:31:1)
at rejected (ApiRequestError.ts:31:1)
when i use the node.js back side function it works fine but when i run the client side React code it doesnât work, i use âmoralisâ: â^2.9.0â
Here is my code :