Sorrow
Sorrow2y ago

✅ – Sorrow – 21-19 Jan 29

Hi, npm-related, why am is this error being thrown? I can read, but I can't make any sense
10 Replies
ScriptyChris
ScriptyChris2y ago
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
Sorrow
Sorrow2y ago
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
ScriptyChris
ScriptyChris2y ago
Maybe try npm update react-typed
ScriptyChris
ScriptyChris2y ago
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
npm
react-typed
A react wrapper for typed.js. Latest version: 1.2.0, last published: 3 years ago. Start using react-typed in your project by running npm i react-typed. There are 28 other projects in the npm registry using react-typed.
ScriptyChris
ScriptyChris2y ago
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)
Sorrow
Sorrow2y ago
Ah I see So basically my terminal throws that warning whenever I'm trying to install outdated packages? *In respect to ReactJS
ScriptyChris
ScriptyChris2y ago
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
Sorrow
Sorrow2y ago
Ah I see ok ty!
reactibot
reactibot2y ago
This question has an answer! Thank you for helping 😄 If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1069366115479859281
reactibot
reactibot2y ago
This thread hasn’t had any activity in 12 hours, so it’s now locked. Threads are closed automatically after 12 hours. If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1069366115479859281 Question not getting answered? Maybe it's hard to answer, or maybe you asked at a slow time. Check out these resources for help asking a good question: https://stackoverflow.com/help/how-to-ask http://wp.me/p2oIwo-26