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

Throws an error on IE11 #11

Closed
klaygomes opened this issue Apr 19, 2022 · 5 comments
Closed

Throws an error on IE11 #11

klaygomes opened this issue Apr 19, 2022 · 5 comments

Comments

@klaygomes
Copy link

On IE11 it is throwing the following error:

You see the problem is getOwnPropertyDescriptor returns undefined.

image

@yiyawu
Copy link

yiyawu commented Apr 19, 2022

The same thing happened to me

@Sayahmet
Copy link

same problem today :(

@klaygomes
Copy link
Author

If you are having this problem, probably it is because of regexp.prototype.flags which started using this as dependency. While it is not fixed, you can work around it by including the following line in your package.json.

  "resolutions": {
    "regexp.prototype.flags": "1.4.2"
  },

@ljharb
Copy link
Member

ljharb commented Apr 19, 2022

That’s for yarn; npm uses “overrides”.

I’ll have a fix out for this in the next few hours.

@ljharb
Copy link
Member

ljharb commented Apr 19, 2022

Also note: another solution in the meantime is to use https://npmjs.com/function.prototype.name, which polyfills function names in IE 9-11 :-)

@ljharb ljharb closed this as completed in 7a7bef0 Apr 19, 2022
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