Click here to Skip to main content
15,868,016 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Facing dependency conflict error in package.json file.
Pls mention steps to convert version 16 to 18 in existing project
How can we manage package.json and package.lock.json file if already exist in project?

What I have tried:

1.Delete previous nodejs & install latest version node.js -18.3.0
2.Delete package.lock.json(because facing error Could not resolve dependency)
3.Add manually latest version for react & react-dom in package.json
4.Run npm install
5.Getting too many dependency conflict error
Posted
Updated 8-Jun-22 1:39am

Try the official documentation at How to Upgrade to React 18[^].
 
Share this answer
 
you shouldn't delete package.lock
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900