Muhammad Abubakar’s Post

View profile for Muhammad Abubakar, graphic

Full Sack Developer | Blockchain

What's the use of putting ^ with the version number other than causing dependency deprecation and mismatch issues? Someone brought a web app to me that he developed last year. He had a test app deployed. While trying to deploy it for production as he was going live that day, he couldn't run the app. It was a dependency deprecation issue. Most of the problems came from wagmi v1. When v2 was released, it installed v2 because of the ^ symbol. I tried installing v1 specifically, but other dependencies still had issues. So, I removed the caret from all the versions in the package.json to install the exact versions of the libraries. Then, I resolved the fs, tls, and polyfills issues (you might already know about that), and the app was running again before the deadline. It is weird having your app fail just because you reinstalled node modules. Just saying.

To view or add a comment, sign in

Explore topics