Skip to content
Playground(another site)

bynk.project.export_unknown

Error bynk.toml's [package] exports lists a name that isn't a commons or adapter the project declares.

A package's [package] exports lists the units it shares, by their qualified names, and each must be a commons or an adapter the package declares. A name that matches none is usually a typo, or a unit that has since been renamed or moved, and a consumer's uses of it would fail far from the cause. Correct the name, or remove the entry. Listing a context is bynk.project.export_context.

Example

[package]
name = "acme/shop"
exports = ["mony"] // ✗ no unit `mony`
exports = ["money"] // ✓ the package's `commons money`

In the Book

See also

  • Every code in its category, Project, on the diagnostic index.
  • bynk explain bynk.project.export_unknown shows the same from the installed toolchain, without a network.