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

TS2420: Class 'ReconnectingEventSource' incorrectly implements interface 'EventSource'.   Property 'classList' is missing in type 'ReconnectingEventSource' but required in type 'EventSource'. #71

Open
spyro2000 opened this issue May 3, 2023 · 1 comment

Comments

@spyro2000
Copy link

spyro2000 commented May 3, 2023

Got the above error when trying to build angular app (14.1)

image

package.json:

`"reconnecting-eventsource": "^1.6.2",

Seems like a constructor parameter classList is missing?

For some reason, it's only a problem within build/src/reconnecting-eventsource.d.ts ('esm' and 'esnext' just work fine)

image

(added the marked line by hand)

Tried with Typescript 2.4.0 and 2.5.1.

Thank you in advance,
spyro

@spyro2000
Copy link
Author

spyro2000 commented May 3, 2023

Update: Never mind, seems to be a problem with ag-charts 7.x, which just overwrites EventTarget globally, requiring classList to be specified in the overwritten report. I filed a bug report:
ag-grid/ag-grid#6551

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

1 participant