#Can i use npm install --force with Railway?

8 messages · Page 1 of 1 (latest)

novel tide
#

Hello, I use the react-panellum library. The package requires React version 15.3.0 or 16.2.0 as a peer dependency

The error I get in my build is

#13 4,723 Module not found: Error: Can't resolve 'react-dom/client' in '/app/src'

I think the error comes because react-dom is too old. So I have two libraries that require different versions of React.

daring copperBOT
#

Project ID: 05866bdf-60b7-426c-ae35-2fb675d92a41

novel tide
#

05866bdf-60b7-426c-ae35-2fb675d92a41

neat pumice
#

truth is, you probably shouldn't be using a dead package from 2020 in a new project today

mental scarab
#

You can fix this with overrides. https://stackoverflow.com/questions/15806152/how-do-i-override-nested-npm-dependency-versions/70396201#70396201

You’ll need to set the version of react for react dom to use the same one you’re using in your other deps.

novel tide
mental scarab