Error on hype reflect

My preview works OK on chrome, without sound on safari but on hype reflect I get the follwing error.
> ERROR: DataCloneError: The object can not be cloned. URL:user-script:1 L:19

Can you share a sample Hype document so we can check it out?

unfortunately this document is under a non disclosure.

have you encountered this error before?

It doesn’t look like a common error (and note this is a web error, not specifically one Hype is generating). My guess would be that somewhere is trying to send a DOM element to something that needs a different type like a string, where the element cannot be copied.

Does this happen when you send to Mobile Safari? You can use the webkit developer tools to remotely debug from your Mac and probably get further data and possibly break on the error.

I think I erroneously included apple javascript

1 Like

I think you can get this sometimes in HR when you are console logging an object.

If you do have any console.log() happening, try commenting them out.

1 Like

I’m getting this too.

If you’re able to, you’re welcome to share the project.

I think the error is where you are trying to output an object to console.log(). Hype Reflect hooks into the console, but I believe needs a string to be sent… You can probably coerce the type via console.log("" + someObj) to get it to vaguely work.

1 Like

Hah, so you are forcing it into a string with concatenation.

Just staring me in the face all this time.

Ta.

1 Like

Yes, and I’ve just changed the code in Hype Reflect so it does this itself for the next version!

2 Likes

It works perfectly now!

1 Like

We haven’t shipped this new version yet :smile:.

1 Like

:see_no_evil::joy:Perhaps it was an iOS issue???