Skip to content

Layout Errors

ERR-BOARD-IMPORT-UNRESOLVED: A board import could not be followed

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Board import {path!r} cannot be followed: {reason}. Point the import at a relative path of a board file that exists, holds a board and does not import itself.

Fired when a board places another board file that the project cannot resolve: a templated or absolute path, a file that does not exist, text that does not parse as a board, or a board with no content.

ERR-NO-LAYOUT: Board defines charts but has no layout

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Board defines charts ({charts}) but no layout: would render with no visible charts. Add a `rows:`/`cols:`/`grid:`/`tabs:` block that references them.

Fired when a board defines charts but no layout block (rows/cols/grid/tabs). Without a layout, the board would render with no visible charts. Add a layout block that references the charts.

ERR-TAB-DEFAULT-UNKNOWN: tabs.default names no tab

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

`tabs.default: {default}` slugs to {slug!r}, which is not a tab on this board (tabs: {slugs}).

Fired when the default: of a tabs: layout matches no tab title. It is compared by slug: the title lowercased with spaces replaced by underscores.

ERR-TAB-TITLE-DUPLICATE-SLUG: Two tab titles share a slug

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Duplicate tab slug '{slug}'. Tab titles must produce unique slugs (after lowercasing and replacing spaces with _). Retitle one of the tabs that slugs to '{slug}'.

Fix: Retitle one of the tabs so the slugs differ.

Fired when two tabs of one layout have titles that slug to the same name.

ERR-TAB-TITLE-EMPTY-SLUG: Tab title has no letter or digit

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Tab title '{title}' produces an empty slug. Tab titles must contain at least one alphanumeric character. Give this tab a title with a letter or digit.

Fix: Give the tab a title with at least one letter or digit.

Fired when a tab's title slugs to nothing, so the tab could not be selected by name.

ERR-TAB-UNKNOWN: Unknown tab selected

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Tab variable {variable!r} is {value!r}, which is not a tab on this board (tabs: {slugs}).

Fired when a render selects a tab that is not on the board, through a --var, a URL parameter, or an API variable named by the tabs id:. A tab is selected by slug: its title lowercased with spaces replaced by underscores.