-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught (in promise) DOMException: Proxy object could not be cloned. #489
Comments
Hey @michael-learns, I see you are using Vue - are you using Nuxt too? We have seen a similar problem in Nuxt in previous issues (discussed on Discord) you can read more about it here: https://discord.com/channels/1138230179878154300/1245001501152378890/1247475355967815815 Are you using our usePowerSync() hook by chance?
|
i'm using Vite. I'm not quite sure where to place that code. |
Can you provide the snippet where you currently call |
@Chriztiaan I don't. I'm using supabase as my backend and this is how it's setup. This is in my App.vue ![]() |
I see! So my understanding is that either marking it as raw when creating the plugin, or converting to raw when connecting should be fine. The reason this is required is because Vue uses a Proxy class class for its reactivity which will break when we clone some of the information when passed via Comlink/Workers. I would recommend
over doing it on creation of the plugin. |
Thanks @Chriztiaan ! The only issue now is what is connector? |
A connector is what we use resolve the credentials and handle the upload of data from the client. |
Thanks @Chriztiaan! I got it. How do I use |
I see for our Vue example: https://github.com/powersync-ja/powersync-js/blob/main/demos/vue-supabase-todolist/src/App.vue |
I'm getting this issue:
I'm trying to insert my data like so
DB definition is based on below
With the drizzleSchema being
And the schema of the inventory purchase is
I'm using drizzle-orm/sqlite-core
The text was updated successfully, but these errors were encountered: