Skip to content
Playground(another site)

bynk.messages.missing_reference

Error A message bundle has no @reference block.

A message bundle is a set of locale blocks, and the compiler checks every locale against one of them, the reference, marked @reference. It is also the fallback when a requested locale is not declared. With no reference there is nothing to check the others against, so exactly one block per commons must carry the mark. Add @reference to the locale your strings are written in first. Two marked blocks are bynk.messages.multiple_reference.

Example

messages "en" { // ✗ no block is marked @reference
"cart.empty" => "Your basket is empty."
}
messages "en" @reference { // ✓
"cart.empty" => "Your basket is empty."
}

In the Book

See also

  • Every code in its category, Message bundles, on the diagnostic index.
  • bynk explain bynk.messages.missing_reference shows the same from the installed toolchain, without a network.