Closed viglucci closed 2 years ago
Hey @viglucci thanks for reaching out!
I can confirm that I can reproduce this. I was able to work around this by running npm i react-spring
, but I am curious as to why this error is happening now 🤔 .
I am going to investigate this a little further to try and find out why we are seeing this issue. I will report back with my findings!
Thanks for the issue @viglucci!
This one can be solved by upgrading NPM to version 7 before you run NPM install. npm install -g npm
should do the trick.
The problem with NPM version 6, is that is doesn't understand the package-lock.json
file in this repository, which is a version 2 package lock file. NPM version 7 will correctly abide by this version 2 lockfile, which will result in react-spring
being installed.
That said, this all stems from our twilio-video-room-monitor library, which uses @airbnb/visx
as a dependency, and this dependency requires react-spring
as a peer dependency. We're planning on updating the room monitor to include react-spring
as dependency to avoid this problem down the road.
Thanks for the update @timmydoza .
I might suggest setting the engines
property in the package.json
, which should warn users in situations like this. I briefly checked the package.json and it doesn't appear to be set currently.
Thanks for the update @timmydoza .
Is there any choice to fix this issue without updating npm version?
Describe the bug
Building the application fails due to missing
react-spring
dependency.To Reproduce
1) Fresh clone the repository 2) Install dependencies with
npm install
3) Runnpm run build
Expected Behavior
A production-ready build is produced.
Actual Behavior
Environment (please complete the following information):
Additional context
n/a