Skip to content
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

docs: update known issues for yarn #226

Merged
merged 1 commit into from
Mar 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions docs/api/tutorials/Known Issues.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,31 @@ player.src({ src: 'urn:swi:video:48115940', type: 'srgssr/urn', disableTrackers:
```
Again, in this scenario you MUST NOT re-enable the tracking for `trackedPlayer`.

### Yarn Deduplication Issue

This section highlights a known issue with Yarn leading to multiple versions of `video.js` being
installed in a project, contrary to npm's deduplication to a single version.

#### Issue Details

- **Scenario**: Cyclic dependencies involving `video.js` result in conflicting versions being
installed via Yarn.
- **Symptoms**: This causes compatibility issues, such as the `eme` plugin loading in only
one `video.js` instance, leading to errors.

#### Workaround

To mitigate this issue, force Yarn to resolve `video.js` to a single version (`8.11.8`) by adding
the following to your project's `package.json`:

```json
"resolutions": {
"video.js": "8.11.8"
}
```

See [Yarn's Manifest Resolutions][yarn-resolutions].

[yarn-resolutions]: https://yarnpkg.com/configuration/manifest#resolutions

[ios-bug]: https://bugs.webkit.org/show_bug.cgi?id=261512
Loading