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

is it compatible with angular 15 and standalone components #288

Open
ghost opened this issue Jun 23, 2023 · 3 comments
Open

is it compatible with angular 15 and standalone components #288

ghost opened this issue Jun 23, 2023 · 3 comments

Comments

@ghost
Copy link

ghost commented Jun 23, 2023

Error: node_modules/ngx-file-drop/lib/ngx-file-drop.component.d.ts:66:90 - error TS2344: Type '{ accept: { alias: "accept"; required: false; }; directory: { alias: "directory"; required: false; }; multiple: { alias: "multiple"; required: false; }; dropZoneLabel: { alias: "dropZoneLabel"; required: false; }; ... 6 more ...; disabled: { ...; }; }' does not satisfy the constraint '{ [key: string]: string; }'.
Property '"accept"' is incompatible with index signature.
Type '{ alias: "accept"; required: false; }' is not assignable to type 'string'.

66 static ɵcmp: i0.ɵɵComponentDeclaration<NgxFileDropComponent, "ngx-file-drop", never, { "accept": { "alias": "accept"; "required": false; }; "directory": { "alias": "directory"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "dropZoneLabel": { "alias": "dropZoneLabel"; "required": false; }; "dropZoneClassName": { "alias": "dropZoneClassName"; "required": false; }; "useDragEnter": { "alias": "useDragEnter"; "required": false; }; "contentClassName": { "alias": "contentClassName"; "required": false; }; "showBrowseBtn": { "alias": "showBrowseBtn"; "required": false; }; "browseBtnClassName": { "alias": "browseBtnClassName"; "required": false; }; "browseBtnLabel": { "alias": "browseBtnLabel"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onFileDrop": "onFileDrop"; "onFileOver": "onFileOver"; "onFileLeave": "onFileLeave"; }, ["contentTemplate"], never, false, never>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

✖ Failed to compile.

I am getting this error

@ghost ghost changed the title is it compatible with angular 15 is it compatible with angular 15 and standalone components Jun 23, 2023
@cscuser
Copy link

cscuser commented Jun 26, 2023

I am getting same error too

@cscuser
Copy link

cscuser commented Jun 29, 2023

i fixed that issue when i install lower versions

npm i [email protected]

@joaopedro04
Copy link

they have not fixed it yet!

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