Can't Install @vidstack/react package #1502
-
When I try to install vidstack react using It shows an error: npm error A complete log of this run can be found in: /home/.npm/_logs/2024-11-11T07_02_11_993Z-debug-0.log` How to fix this issue? I need to use vidstack for my own project. Please help me |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 Option 2: Use --legacy-peer-deps Flag |
Beta Was this translation helpful? Give feedback.
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…