-
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
v7.10.1 import issue #6909
Comments
👋 Thanks for opening your first issue here! 👋 If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. |
Thanks for the issue, we're aware of it, and we'll try to fix it quickly. In the meantime, feel free to go back to using 7.9.7 or if you can pin |
This fixes an issue where subtitles were getting disabled when where in-manifest. Also, fixes vhs-util versions. Fixes videojs#6909
This fixes an issue where subtitles were getting disabled when where in-manifest. Also, fixes vhs-util versions. Fixes #6909
Hey everyone, thanks for your patience. We got distracted due to the demuxed conference last week. |
I am seeing this issue with 7.11.4 as well, should I open a new issue? |
I'm also experience the same issue. |
Same issue with 7.11.4. Which one is a working one? Tried 7.9.7, but also no luck. |
Ok, |
@matrunchyk are you using yarn 2? |
@gkatsev I wasn't edit: 1.22.10 for reference |
@gkatsev |
@ryan-rushton interesting. Is yarn choosing vhs-utils 3.x? |
@matrunchyk weird, was it choosing vhs-utils 3 previously? |
@gkatsev yes sir, 3.0.0 with no mentioned helpers in the dist folder. |
huh, weird, I don't understand why vhs-utils 3.x is being chosen. Afaik, eveything has vhs-utils 2.x in the dependencies field... |
ahh found out. [email protected] |
Is [email protected] compatible with the latest video.js? |
What version of Video.js are you using? I think m3u8-parse 4.6.0/vhs-utils 3 should work with Video.js 7.11.7. |
I'm on [email protected] Here is my deps tree: |
Thanks, @matrunchyk are you using m3u8-parser directly as well? |
Correct, [email protected] You're right, perhaps I should not use it directly. Removed Thank you! |
Cool, yeah, if you need m3u8-parser you'd need to use the same version that your version of Video.js/VHS is using. Either way, I think I need to look through things as there may be some weird version mismatches. |
FWIW, I just removed my vhs-utils dependency, installed the latest video.js, and it seems to be fine now. I have m3u8-parser v4.5.0. I can't remember if I had m3u8-parser installed separately when I initially wrote my comment. |
Still running into this. The workaround helps, but that shouldn't be the solution to this. What's the actual fix on the videojs side? |
The last thing I can think of is bringing the VHS dependencies as Video.js dependencies, if that doesn't fix yarn then I'm not sure if there's anything we can do. |
tl;dr, yarn is doing things differently than npm, you can use https://github.com/atlassian/yarn-deduplicate after adding a new version of Video.js to fix up versions. OK, I think I finally have a handle on this, and it has to do with how yarn handles version matching and differences between it and npm. $ npm i [email protected]
$ npm ls video.js
[email protected] /Users/gkatsevman/p/videojs-bundler-sample
├─┬ [email protected]
│ └─┬ @videojs/[email protected]
│ └── [email protected] deduped
└─┬ [email protected]
└── [email protected] deduped There, we can see that Video.js is deduped as expected. $ npm i [email protected]
$ npm ls video.js
[email protected] /Users/gkatsevman/p/videojs-bundler-sample
├─┬ [email protected]
│ └─┬ @videojs/[email protected]
│ └── [email protected] deduped
└─┬ [email protected]
└── [email protected] deduped However, going back to Video.js 7.12, and then updating to Video.js 7.13, I get (tripped output) yarn why video.js
yarn why v1.22.10
[1/4] :thinking_face: Why do we have the module "video.js"...?
[2/4] :truck: Initialising dependency graph...
[3/4] :mag: Finding dependency...
[4/4] :aerial_tramway: Calculating file sizes...
=> Found "[email protected]"
info Has been hoisted to "video.js"
info This module exists because it's specified in "dependencies".
=> Found "videojs-contrib-quality-levels#[email protected]"
info Reasons this module exists
- "videojs-contrib-quality-levels" depends on it
- Hoisted from "videojs-contrib-quality-levels#video.js#@videojs#http-streaming#video.js"
=> Found "@videojs/http-streaming#[email protected]"
info Reasons this module exists
- "video.js#@videojs#http-streaming" depends on it
- Hoisted from "video.js#@videojs#http-streaming#video.js#@videojs#http-streaming#video.js" Weirdly, going back to an older version of Video.js, I get version mismatched: $ yarn add [email protected]
$ yarn why video.js
yarn why v1.22.10
=> Found "[email protected]"
info Has been hoisted to "video.js"
info This module exists because it's specified in "dependencies".
=> Found "videojs-contrib-quality-levels#[email protected]"
info Reasons this module exists
- "videojs-contrib-quality-levels" depends on it
- Hoisted from "videojs-contrib-quality-levels#video.js#@videojs#http-streaming#video.js"
=> Found "@videojs/http-streaming#[email protected]"
info Reasons this module exists
- "video.js#@videojs#http-streaming" depends on it
- Hoisted from "video.js#@videojs#http-streaming#video.js#@videojs#http-streaming#video.js" Now, installing video.js 7.12, the latest video.js, works fine: $ yarn add video.js
$ yarn why video.js
yarn why v1.22.10
=> Found "[email protected]"
info Has been hoisted to "video.js"
info Reasons this module exists
- Specified in "dependencies"
- Hoisted from "videojs-contrib-quality-levels#video.js"
- Hoisted from "video.js#@videojs#http-streaming#video.js" So, I think the issue arises when a non latest version of Video.js is added. yarn doesn't automatically dedupe the packages for whatever reason. Even running Unfortunately, I'm not sure if there's anything we can do on our side. |
Also, see relevant yarn issues yarnpkg/yarn#6070 and yarnpkg/yarn#3967. Unfortunately, there isn't anything more that we can do on our end. |
This fixes an issue where subtitles were getting disabled when where in-manifest. Also, fixes vhs-util versions. Fixes videojs#6909
Description
v7.10.1 created the following problem when importing video.js as an es module.
Steps to reproduce
Explain in detail the exact steps necessary to reproduce the issue.
import vjs from 'video.js';
Results
Expected
No error occurs
Error output
'@videojs/vhs-utils/dist/containers' is imported by node_modules\video.js\dist\video.es.js, but could not be resolved – treating it as an external dependency '@videojs/vhs-utils/dist/byte-helpers' is imported by node_modules\video.js\dist\video.es.js, but could not be resolved – treating it as an external dependency No name was provided for external module '@videojs/vhs-utils/dist/containers' in output.globals – guessing 'containers' No name was provided for external module '@videojs/vhs-utils/dist/byte-helpers' in output.globals – guessing 'byteHelpers'
The text was updated successfully, but these errors were encountered: