ReferenceError: RTCPeerConnection? #207
-
What does that mean? I'm testing geckos in, SvelteKit and when I reload thanks to Svelkit's hotreload, this appears: "ReferenceError: RTCPeerConnection is not defined" |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Well it seems that I found a solution, reading the documentation of Sveltekit there is an Api that allows you to execute code if the (Browser) is true, that is to say for some reason Geckos.io client does not work with the Sveltekit server, so adding the following lines the error is solved:
So with the Api (Browser), we make sure that the code that only works on the frontend works and doesn't mix with the Sveltekit backend. |
Beta Was this translation helpful? Give feedback.
Well it seems that I found a solution, reading the documentation of Sveltekit there is an Api that allows you to execute code if the (Browser) is true, that is to say for some reason Geckos.io client does not work with the Sveltekit server, so adding the following lines the error is solved: