sprig and prose docs classic docs
Reference› Errors› SP005 DisallowedKindError

SP005 DisallowedKindError

ActiveError — Errors, when they are introduced, are always considered active.

Some blocks only allow certain kinds of declaration. A concept inside a relates block is one example. Move the declaration to a place that accepts it.

Raised by

  • EdgeBlock — An edge block holds facts about one connection, from the end that wrote it.
  • Relates — A relates block is a pairing worth describing on its own.
  • Relationship — A relationship names how two things connect.
  • RelationshipSide — A two-word relationship has two sides, but a describe inside it covers the pair, so isLeftOf and isRightOf share one sentence even though they do not mean the same thing.

In the compiler

  • packages/prose-parser/src/errors.js:193