Skip to content
Playground(another site)

bynk.project.kind_conflict

Error A name is declared as both a commons and a context.

A name belongs to one unit, so every file declaring it must agree on its kind. One file saying commons shop and another context shop would make the name both a library and a deployable unit. Give the files different names, or make them the same kind. A context is the deployable unit, and a commons is the shared code it uses.

Example

shop/types.bynk
commons shop // ✗ the name is also a context
commons shop.types // ✓
// shop/api.bynk
context shop

In the Book

See also

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