-
-
Notifications
You must be signed in to change notification settings - Fork 534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Property '"options"' is incompatible with index signature #702
Comments
I have the same issue, but it can be fixed by installing simplebar-angular 3.2.4 version |
Yep, I mentioned it in the description that affected versions are 3.2.5 and 3.2.6 |
There's zero change in types or any angular code between 3.2.4 and 3.2.5 so I have absolutely no clue why this would be happening all of a sudden. |
Hey @Grsmto, I just compared versions 3.2.4 and 3.2.5 and noticed this change: 9a2cdc9#diff-874e3e4b59bff724c2ffc471287446a81ee8296ae357129c8e06032cd2b07939R9 Could this be the source of the issue? |
I don't see how, this is the vanilla js package, the angular plugin does not have a dependency on this file... |
I actually have this issue also appearing when using 3.2.4 up till 3.0.0 with Angular 16 - so maybe a change introduced earlier? |
Describe the bug
When import { SimplebarAngularModule } from "simplebar-angular"
To Reproduce
Steps to reproduce the behavior:
1.Install simplebar-angular by using "npm install simplebar-angular --save"
2. Add import to app.module.ts as described in the simplebar-angular documentation ( import { SimplebarAngularModule } from 'simplebar-angular'
4. See error in cli: Error: node_modules/simplebar-angular/lib/simplebar-angular.component.d.ts:16:95 - error TS2344: Type '{ options: { alias: "options"; required: false; }; }' does not satisfy the constraint '{ [key: string]: string; }'.
Property '"options"' is incompatible with index signature.
Type '{ alias: "options"; required: false; }' is not assignable to type 'string'.
static ɵcmp: i0.ɵɵComponentDeclaration<SimplebarAngularComponent, "ngx-simplebar", never, { "options": { "alias": "options"; "required": false; }; }, {}, never, ["*"], false, never>;
Expected behavior
A clear and concise description of what you expected to happen.
Environment
The text was updated successfully, but these errors were encountered: