Concrete
Rulestypecheck

concrete/typecheck/error

TypeScript reports an error in a workspace module or its `tsconfig.json`.

TypeScript reports an error in a workspace module or its tsconfig.json.

Graded by the typecheck stage of concrete check, in the tree venue. A violation reports this id and the file it failed at — see every rule and concrete check.

Reason

concrete check compiles your workspace with the TypeScript that shipped inside the framework, against your own tsconfig.json. The workspace does not choose that compiler — the framework picks and tests it — so the types every builder, binding and primitive is declared with are graded by the version they were written against, and an error here is the same error your editor shows.

Fix

Fix the error the message names; it carries TypeScript's own code and wording. If the report names tsconfig.json itself, the workspace has no config or an unreadable one: add { "extends": "@homepages/concrete/tsconfig" } at the root and re-run.

Before and after

// The Before is a type error by design — that is the violation.
// @noErrors
import { text } from "@homepages/concrete";

const headline = text.medium({ label: "Headline", cap: "60" });
import { text } from "@homepages/concrete";

const headline = text.medium({ label: "Headline", cap: 60 });

On this page