forty-cdk
llms.txt

Error codes

FORCDK-DATE-PICKER-004

Thrown by forty-cdk/date-picker.

[forty-cdk/date-picker] FORCDK-DATE-PICKER-004: [forDatePickerTrigger] could not resolve its [forDatePicker] root.

Cause

No FOR_DATE_PICKER_CONTEXT provider is visible and no explicit root was passed. 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 [forDatePickerTrigger] inside the [forDatePicker] element, or pass the root explicitly: [forDatePickerTrigger]="root" with #root="forDatePicker".

Where it comes from

projects/forty-cdk/date-picker/src/date-picker-context.ts:210

Read the date-picker documentation