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 'prototype' is missing in type 'SignatureEventTarget' but required in type 'EventTarget' #659

Closed
zornic84 opened this issue Oct 11, 2022 · 4 comments · Fixed by #660

Comments

@zornic84
Copy link

Version: Signature Pad v4.0.9
Visual Studio Code 1.72.0

This problem occurs when debugging

Error: node_modules/signature_pad/dist/types/signature_event_target.d.ts:1:22 - error TS2420: Class 'SignatureEventTarget' incorrectly implements interface 'EventTarget'.
Property 'prototype' is missing in type 'SignatureEventTarget' but required in type 'EventTarget'.

1 export declare class SignatureEventTarget implements EventTarget {
~~~~~~~~~~~~~~~~~~~~

node_modules/typescript/lib/lib.dom.d.ts:5162:5
5162 prototype: EventTarget;
~~~~~~~~~
'prototype' is declared here.

I've already tried a lot in the tsconfig
tsconfig.json:

"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": false,
"strictInputAccessModifiers": false,
"strictTemplates": false,
"strictDomEventTypes": false,
"strictFunctionTypes": false
}

@PawelBronka
Copy link

Downgrading @types/node from v18.8.4 to v18.8.3 helped.

@zornic84
Copy link
Author

Unfortunately, the downgrade did not work either

@PawelBronka
Copy link

Unfortunately, the downgrade did not work either

Sorry to hear that.
Did you also try to temporary remove the symbol (^ or ~) before version?

Should be like this:

"@types/node": "18.8.3",

instead of:

"@types/node": "^18.8.3",

@zornic84
Copy link
Author

Nice, without the characters it works again. Thank you very much!

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

Successfully merging a pull request may close this issue.

2 participants