Skip to content

Can't Install @vidstack/react package #1502

Discussion options

You must be logged in to vote

Error you’re seeing occurs because Vidstack’s @vidstack/react package requires React 18, but you currently have React 19.0.0-rc installed. Here are some ways to resolve the dependency conflict:

Option 1: Downgrade to React 18
Since @vidstack/react depends on React 18, you could downgrade React to a compatible version:
npm install react@18 react-dom@18
Then, try installing Vidstack:
npm install @vidstack/react@next

Option 2: Use --legacy-peer-deps Flag
If you want to try installing @vidstack/react without downgrading React, you can bypass the dependency check with the --legacy-peer-deps flag:
npm install @vidstack/react@next --legacy-peer-deps
However, this might lead to unexpected behavio…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Mreality69
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants