Replies: 3 comments 6 replies
-
I think to use import, you will have to use the |
Beta Was this translation helpful? Give feedback.
1 reply
-
Same issue. |
Beta Was this translation helpful? Give feedback.
3 replies
-
@Elior2739 could you please send it again i am facing same issue :) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I'm trying a while to use socket.io-client inside a chrome extension service worker.
I tried multiple ways to accomplish this:
"type": "module"
inside manifest.json and try to import from the cdnBut it didn't work and throwed an error:
Uncaught SyntaxError: The requested module 'https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.6.0/socket.io.min.js' does not provide an export named 'default'
Also tried:
But throw an error:
Uncaught SyntaxError: The requested module 'https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.6.0/socket.io.min.js' does not provide an export named 'io'
https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.6.0/socket.io.min.js
and tried to usewhich throwed an error:
An unknown error occurred when fetching the script.
manifest.json:
I'm really don't know what to do and what I'm doing wrong, So that's is the reason why I asked it here.
Beta Was this translation helpful? Give feedback.
All reactions