forty-cdk
llms.txt

Error codes

FORCDK-SCROLL-AREA-002

Thrown by forty-cdk/scroll-area.

[forty-cdk/scroll-area] FORCDK-SCROLL-AREA-002: ForScrollAreaThumb must be used inside a [forScrollAreaScrollbar] element.

Cause

No ForScrollAreaScrollbar provider is visible from ForScrollAreaThumb. 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 ForScrollAreaThumb inside a [forScrollAreaScrollbar] element, declaring any ng-template it lives in there too.

Where it comes from

projects/forty-cdk/scroll-area/src/scroll-area-thumb.ts:9

Read the scroll-area documentation