You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems the combination of Vite v4 with hls.js causes this. Downgrading vite from 4.0.0 to 3.2.5 and @vitejs/plugin-vue from 4.0.0 to 3.2.0 'solved' this issue for me.
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 vite dev server. Building with vite build and then running the output code didn't give any error.
robwalch
removed
the
Needs Triage
If there is a suspected stream issue, apply this label to triage if it is something we should fix.
label
Feb 27, 2023
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: