How to safely remove resolve-url?

403 Views Asked by At

I have an npm package resolve-url in my React Native project. The package is deprecated, and I'm not using it, so I want to remove it. However, after I run npm uninstall resolve-url to uninstall per npm's documentation, my project no longer runs with npm start!


How do I safely remove resolve-url?

1

There are 1 best solutions below

0
Super Jade On BEST ANSWER

How do I safely remove resolve-url?


It turns out that my project depended on resolve-url through another package, source-map-resolve.

Solution:

  1. npm uninstall source-map-resolve
  2. npm uninstall resolve-url
  3. I deleted the newly created package-lock.json because my project used yarn.lock.
  4. I cleaned up remaining references to source-map-resolve and resolve-url in my yarn.lock.

More info