R
Reactiflux

help-js

✅ – Sorrow – 21-19 Jan 29

SSorrow1/29/2023
Hi, npm-related, why am is this error being thrown? I can read, but I can't make any sense
SScriptyChris1/29/2023
I would deduce your projects has React v18.2 and it needs some library, which needs React v16.3, which causes conflicts. I think you should update react-typed package, so it will be in sync with React v18.2
SSorrow1/29/2023
Correct It's react 18.2 I'm not sure about updating though This pops up whenever I try to install react-typed I had to use --force to get it installed
SScriptyChris1/29/2023
Maybe try npm update react-typed Also, this package is already 3 years old, so... React 16 may be the highest it can possibly be synced with https://www.npmjs.com/package/react-typed?activeTab=versions If your project has mostly React 16 deps, then maybe you should downgrade React from 18 to 16 or... get rid of outdated dependencies (update them or switch to alternatives)
SSorrow1/29/2023
Ah I see So basically my terminal throws that warning whenever I'm trying to install outdated packages? *In respect to ReactJS
SScriptyChris1/29/2023
It's not warning, but error, which is worse 😛 And force installation in this case doesn't guarantee stuff to work - as last line of the error says
SSorrow1/29/2023
Ah I see ok ty!
UUUnknown User1/30/2023
3 Messages Not Public
Sign In & Join Server To View

Looking for more? Join the community!