Skip to content
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

Open
skrappyzz opened this issue Jul 25, 2024 · 2 comments
Open

Property '"options"' is incompatible with index signature #702

skrappyzz opened this issue Jul 25, 2024 · 2 comments

Comments

@skrappyzz
Copy link

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

Software Version(s)
SimpleBar 3.2.5 and 3.2.6
Browser Chrome
npm 10.7.0
Operating System Windows 10
@letovsk1y
Copy link

I have the same issue, but it can be fixed by installing simplebar-angular 3.2.4 version

@skrappyzz
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants