FORCDK-TIME-FIELD-003
Thrown by forty-cdk/time-field.
[forty-cdk/time-field] FORCDK-TIME-FIELD-003: {piece} must be used inside a [forTimeRangeFieldStart] or [forTimeRangeFieldEnd] element.Cause
No FOR_TIME_RANGE_FIELD_SEGMENT_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 [forTimeRangeFieldStart] or [forTimeRangeFieldEnd] element, declaring any ng-template it lives in there too.
Where it comes from
projects/forty-cdk/time-field/src/time-range-field-context.ts:91
Read the time-field 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.