Closed j12y closed 8 months ago
The issue seems to be that SvelteKit will do Server-side Rendering and the stats must be gathered client-side so something with the import
for both libraries didn't detect the scenario and failed to load. Disabling SSR for a specific route that uses these libraries to gather stats resolves the issue.
Closing as there is nothing to be done.
This may be my error but logging the issue while investigating what the right thing to do would be and which library is the source of the conflict.
Describe the bug
When trying to use webrtc-stats in combination with the millicast/sdk with
initStats
enabled I'm seeing this error:Expected Behavior
This prevents
vite
from starting the app.Minimalistic code (recommended)
This is a basic svelte project (
npm create svelte@latest millicast-svelte-tester
) but I'm trying to use both the built-in stats and the webrtc-stats library.Specifications