forty-cdk
llms.txt

Error codes

FORCDK-NUMBER-INPUT-001

Thrown by forty-cdk/number-input.

[forty-cdk/number-input] FORCDK-NUMBER-INPUT-001: {piece} must be used inside a [forNumberInputGroup] that wraps a [forNumberInput] element.

Cause

No FOR_NUMBER_INPUT_GROUP provider is visible from {piece}. Angular resolves a directive's dependencies at the template's declaration site rather than where it is stamped, so a piece declared in an ng-template outside the root resolves nothing even when it renders inside it.

Fix

Move {piece} inside a [forNumberInputGroup] that wraps a [forNumberInput] element, declaring any ng-template it lives in there too.

Where it comes from

projects/forty-cdk/number-input/src/number-input-context.ts:84

Read the number-input documentation

A value in braces is filled in when the message is reported, so the sentence in your console names the piece, input or value that failed.