Skip to content

Other packages depend on it

error: can't remove @acme/ui: web, admin depend on it
hint: Take it out of their dependencies first, then run axle generate remove again. Nothing was removed.

axle generate remove deletes a package only when no other package in the workspace lists it among its dependencies. Removing it would leave those packages importing something that’s gone, and the next install or build would fail.

Take the package out of the dependencies, devDependencies or peerDependencies of each package the error names, and remove the imports that use it, then run it again:

Terminal window
axle generate remove @acme/ui

To keep the package and only put it somewhere else, move it instead.