-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Hls.js does not work with SvelteKit (vite) #5156
Comments
It seems the combination of Vite v4 with hls.js causes this. Downgrading Perhaps it's related to the upgrade to Rollup v3 in the latest Vite version? For me the issue only occured when running the code locally with |
Ah I just stumbled upon this issue #5107 which should fix it. |
@robwalch doesn't 1.4.0 fixes this? |
What version of Hls.js are you using?
1.2.9
What browser (including version) are you using?
Firefox 108.0.2
What OS (including version) are you using?
Win 10
Test stream
No response
Configuration
Additional player setup steps
No response
Checklist
Steps to reproduce
Expected behaviour
hls.js should work
What actually happened?
hls.js failed with
TypeError: __webpack_modules__2[moduleId] is undefined
errorSee reproduction in stackblitz - https://stackblitz.com/edit/vitejs-vite-jhuctn?file=src%2FApp.svelte
P.S. Related issue - #5146
hls.js works fine if import it like this:
import Hls from "hls.js/dist/hls.min.js";
Console output
Chrome media internals output
No response
The text was updated successfully, but these errors were encountered: