1

So we are migrating our code base from Vue 2 to Vue 3 and everything works fine for HERE maps except for the .addObject() event that keeps failing with the error:

Failed to execute 'postMessage' on 'Worker': [object Array] could not be cloned

Nothing else has been changed and the data exists and is properly formatted.

Any help would be appreciated!

1 Answer 1

2

It turns out that Vue 3 uses Proxy and because of this, HERE maps throws a fit.

To fix this I used: toRaw() and wrapped the data inside of this! This fixed the issue.

Docs: https://vuejs.org/api/reactivity-advanced.html#toraw

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.