forty-cdk
llms.txt

Error codes

FORCDK-MENU-004

Thrown by forty-cdk/menu.

[forty-cdk/menu] FORCDK-MENU-004: {piece} must be used inside a [forMenuRadioGroup] element.

Cause

No FOR_MENU_RADIO_GROUP_CONTEXT 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 [forMenuRadioGroup] element, declaring any ng-template it lives in there too.

Where it comes from

projects/forty-cdk/menu/src/menu-radio-group-context.ts:29

Read the menu 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.