Skip to content
Playground(another site)

bynk.project.export_context

Error bynk.toml's [package] exports lists a context: a package shares commons and adapters, never a context, which belongs to the project that deploys it.

A package's exports list names the commons and adapters it shares. A context is a deployment unit, owned by the project that deploys it, so a package never shares one, and listing one is refused. Remove it, or move what other projects need into a commons and list that. A name that is no unit of the package at all is bynk.project.export_unknown.

Example

[package]
name = "acme/shop"
exports = ["shop.checkout"] // ✗ a context
exports = ["money"] // ✓ a commons

In the Book

See also

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