🔴 ERROR | import() is not allowed in service workers.
I'm trying to import Supabase in a service worker to push save some images but I got this error in the console and I have no idea what I'm doing wrong. Any idea?
Here is my
background.tsx
code:
5 Replies
@cdedreuille has reached level 3. GG!
By the way, it doesn't seem to be a problem when importing the store but when I'm adding the line
await supabase.storage.from("images").upload("test.png", base64);
We can't use any library in a service worker?Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Thanks a lot @p6l.richard for looking into it. That's what I ended up doing. I'm new to service workers.
Gave +1 Rep to @p6l.richard