Closed hashemi313 closed 1 year ago
Version 11.0.0 is the latest working version for Angular 15, https://github.com/MurhafSousli/ngx-scrollbar/blob/master/CHANGELOG.md#1100
I tried version 11.0.0 but the problem still exists
This occurs when you have strictTemplates on in angular. It's a problem in the module for sure. [disabled] is not being seen as an input on the component.
when i add NgScrollbarModule to my app.module i get this error while compile: Error: node_modules/ngx-scrollbar/lib/ng-scrollbar.d.ts:154:90 - error TS2344: Type '{ disabled: { alias: "disabled"; required: false; }; sensorDisabled: { alias: "sensorDisabled"; required: false; }; pointerEventsDisabled: { alias: "pointerEventsDisabled"; required: false; }; ... 14 more ...; scrollAuditTime: { ...; }; }' does not satisfy the constraint '{ [key: string]: string; }'.
Property '"disabled"' is incompatible with index signature. Type '{ alias: "disabled"; required: false; }' is not assignable to type 'string'.
154 static ɵcmp: i0.ɵɵComponentDeclaration<NgScrollbar, "ng-scrollbar", ["ngScrollbar"], { "disabled": { "alias": "disabled"; "required": false; }; "sensorDisabled": { "alias": "sensorDisabled"; "required": false; }; "pointerEventsDisabled": { "alias": "pointerEventsDisabled"; "required": false; }; "viewportPropagateMouseMove": { "alias": "viewportPropagateMouseMove"; "required": false; }; "autoHeightDisabled": { "alias": "autoHeightDisabled"; "required": false; }; "autoWidthDisabled": { "alias": "autoWidthDisabled"; "required": false; }; "viewClass": { "alias": "viewClass"; "required": false; }; "trackClass": { "alias": "trackClass"; "required": false; }; "thumbClass": { "alias": "thumbClass"; "required": false; }; "minThumbSize": { "alias": "minThumbSize"; "required": false; }; "trackClickScrollDuration": { "alias": "trackClickScrollDuration"; "required": false; }; "pointerEventsMethod": { "alias": "pointerEventsMethod"; "required": false; }; "track": { "alias": "track"; "required": false; }; "visibility": { "alias": "visibility"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "position": { "alias": "position"; "required": false; }; "sensorDebounce": { "alias": "sensorDebounce"; "required": false; }; "scrollAuditTime": { "alias": "scrollAuditTime"; "required": false; }; }, { "updated": "updated"; }, ["customViewPort"], ["*"], true, never>;
package.json