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

EventTarget breaks on IE #30

Closed
xTEddie opened this issue Apr 1, 2020 · 4 comments
Closed

EventTarget breaks on IE #30

xTEddie opened this issue Apr 1, 2020 · 4 comments

Comments

@xTEddie
Copy link

xTEddie commented Apr 1, 2020

Browser: IE 11
Version: 11.719.18362.0
Update Versions: 11.0.180

I have a project written in TypeScript. I had a sample class which extends EventTarget it did not work.

Has anyone experience the same issue?

@WynterDing
Copy link

Same issue.

This is a very low-level dependency,if this cause IE11 blank screen, many websites will be affected.

https://github.com/mysticatea/event-target-shim/blob/master/dist/event-target-shim.js#L91~L102

@Jaffsterz
Copy link

Jaffsterz commented Aug 25, 2020

We have the same problem due to a dependency on event-target-shim in huge-uploader.
Has anyone found a solution?

Edited: we have fixed this by babel polyfilling node_modules/event-target-shim itself

@xTEddie
Copy link
Author

xTEddie commented Sep 2, 2020

I used event-target-shim-es5 which resolved this issue

@mysticatea
Copy link
Owner

Hi. I apologize for my lack of communication.

I had intended this package is used along with bundlers, and if you want to support IE11, you should configure your bundlers to transpile application.

If you don't use bundlers, use the umd build that is transpiled.


But some build tools don't look transpiling node_modules.

Therefore, since 6.0.0, this package includes ES5 build. Use import {} from "event-target-shim/es5" instead.

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

4 participants