Skip to content
Playground(another site)

bynk.package.unknown_unit

Error A uses or consumes names, through a dependency alias, a unit the dependency doesn't declare.

A dependency is reached as alias.unit, where the unit is a commons or adapter the package declares. A name after the alias that matches none of them is refused, most often because it is misspelt. The diagnostic's note lists the units the package shares. A unit that exists but is not exported is bynk.package.unit_not_exported.

Example

commons notify // in the package `acme/lib`
uses lib.notifiy // ✗ the package declares no `notifiy`
uses lib.notify // ✓

In the Book

See also

  • Every code in its category, Packages, on the diagnostic index.
  • bynk explain bynk.package.unknown_unit shows the same from the installed toolchain, without a network.