Anyone know of a better way to update Node dependencies?

Every so often I remember how messy it is to be in the #JavaScript ecosystem. Updating from #React 16 to 17 also requires updating #ESLint which requires updating its plugins (fuck you #AirBnB ), which requires you to update #webpack and it’s loaders/plugins, which requires you update #Babel. This doesn’t even account for any other random libraries you’re using so even then you’ll still end up getting #npm peer dependency errors.

Please tell me there’s a better way…

1 points · 2 comments · view on lemmy.world

2 Comments

fusio@lemmy.world · 1 pts · 3y

Im very happy with yarn3 and the yarn upgrade-interactive command.

I update all the minor/patches check that everything still works and the update the majors.

bennyp@kbin.social · 1 pts · 3y

Step one is usually to npm remove react