-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Can't resolve imports in video.es.js with yarn v2 / berry #7209
Comments
I'm not sure whether I just haven't ran it properly or because I still had a package-lock that yarn used or something, but I've had a sample project I used where yarn+berry was able to resolve things properly. |
Because VHS is inlined into Video.js, we should depend on what VHS depends on. Fixes videojs#7091, fixes videojs#7209, fixes videojs#7144, fixes videojs#7109
Description
I'm using yarn v2 with
videojs
.During compiling, I get different import errors on
video.js/dist/video.es.js
file.How to fix
Add
@videojs/vhs-utils
,m3u8-parser
,mpd-parser
andmux.js
invideo.js
package.json dependencies or change/update code ofvideo.js/dist/video.es.js
file.Workaround
Add in
.yarnrc.yml
file:Steps to reproduce
video.js
in package.jsonyarn install
Results
Expected
Compile success.
Actual
On compiling, I get these errors:
Additional Information
versions
video.js: 7.11.8, 7.12.1
yarn: 2.4.1
webpack: 4.46.0, 5.36.2
OS
Windows
The text was updated successfully, but these errors were encountered: