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 '"previewOnly"' is incompatible with index signature. #189

Open
robinlieson92 opened this issue May 29, 2024 · 1 comment
Open

Comments

@robinlieson92
Copy link

robinlieson92 commented May 29, 2024

I updated from version 1.3 to 1.5 and get this error
Can you find out what causes it?
I still use Angular 15 without updating to Angular 17

It show :

Property '"previewOnly"' is incompatible with index signature.
   Type '{ alias: "previewOnly"; required: false; }' is not assignable to type 'string'

And did a check on node_modules which caused it to be this :
static ɵdir: i0.ɵɵDirectiveDeclaration<NgxPrintDirective, "button[ngxPrint]", never, { "previewOnly": { "alias": "previewOnly"; "required": false; }; "printSectionId": { "alias": "printSectionId"; "required": false; }; "printTitle": { "alias": "printTitle"; "required": false; }; "useExistingCss": { "alias": "useExistingCss"; "required": false; }; "printDelay": { "alias": "printDelay"; "required": false; }; "closeWindow": { "alias": "closeWindow"; "required": false; }; "bodyClass": { "alias": "bodyClass"; "required": false; }; "openNewTab": { "alias": "openNewTab"; "required": false; }; "printStyle": { "alias": "printStyle"; "required": false; }; "styleSheetFile": { "alias": "styleSheetFile"; "required": false; }; }, {}, never, never, true, never>;

I can't update Angular, because it will cause errors everywhere, so is it possible to update canvas to image in version 1.3? I need that function on version 1.3

@eddytnk
Copy link

eddytnk commented Jul 1, 2024

I am have same issue with angular v15 and "ngx-print": "^1.3.1",

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