Skip to content

Two packages share a name

error: two packages are both named @acme/ui: packages/ui/package.json and packages/ui-old/package.json
hint: Rename one of the two so every name is unique.

When one of the two is a project named in an axle.toml, the message says “two projects” instead:

error: two projects are both named api: packages/api/package.json and services/api/axle.toml

Two packages or projects have the same name, so Axle can’t tell which one another depends on. This often happens after copying a folder.

Rename one of the two, or remove the copy you don’t need. A package’s name is name in its package.json, and a project’s is name in its axle.toml.