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

Cannot find name 'GlobalCompositeOperation'. #807

Open
Rohan527523 opened this issue Feb 5, 2025 · 3 comments
Open

Cannot find name 'GlobalCompositeOperation'. #807

Rohan527523 opened this issue Feb 5, 2025 · 3 comments

Comments

@Rohan527523
Copy link

I am using angular 11.2.10 and signature_pad latest version

Build at: 2025-02-05T08:17:07.308Z - Hash: a0544d24e51e128f9c1c - Time: 43720ms

Error: node_modules/signature_pad/dist/types/signature_pad.d.ts:36:25 - error TS2304: Cannot find name 'GlobalCompositeOperation'.

36 compositeOperation: GlobalCompositeOperation;
~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/signature_pad/dist/types/signature_pad.d.ts:55:25 - error TS2304: Cannot find name 'GlobalCompositeOperation'.

55 compositeOperation: GlobalCompositeOperation;
~~~~~~~~~~~~~~~~~~~~~~~~

** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **

@UziTech
Copy link
Collaborator

UziTech commented Feb 5, 2025

Looks like your build system is configured for a browser version that is too old. If you can create a minimal repo that reproduces this error we can try to help.

@Rohan527523
Copy link
Author

node_modules/signature_pad/dist/types/signature_pad.d.ts:55:25

i navigated to this line and when i check GlobalCompositeOperation definition it is showing
type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";

@UziTech
Copy link
Collaborator

UziTech commented Feb 5, 2025

Seems like a typescript error. You may want to ask on stack overflow to get more eyes on it.

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

No branches or pull requests

2 participants