-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
IE11. Object doesn't support property or method 'repeat' #8974
Comments
@nmoinvaz Hey, Are you using "immer", the produce method of immer was causing issue for me. |
@nikhiltech I am running into this same issue and am using immer - were you able to find a workaround? |
@nikhiltech never mind! I updated to v 6.0.9 of immer and it seems to be working now. |
I have the same problem. How did you solve it?I suspect I used React.Provider, but I don't know how to solve it |
@littleLuyx use |
Thank you. It's very instructive. I didn't use immer in my document, but I was prompted with syntax errors. Finally, I introduced core-js to solve this problem |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
I was not using immer. I think it is due to the error panel library that is being used not supporting legacy browsers. |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
This issue has been automatically closed because it has not had any recent activity. If you have a question or comment, please open a new issue. |
Describe the bug
When throwing an error using JS
throw
during IE11 development, the following script error dialog occurs:It is similar to the issue #8438 and #8405 except that it is in reference to repeat from String.prototype.repeat instead of entries from Object.entries.
The Object.entries issue was fixed in a CRA fork EverlongProject#9. A similar fix might be needed for String.prototype.repeat.
The problem does not resolve itself when adding
core-js
package.Did you try recovering your dependencies?
No
Which terms did you search for?
A combination of "object support repeat" in the GitHub issues.
Environment
npx: installed 98 in 6.932s
Environment Info:
Steps to reproduce
Expected behavior
It should show the react error screen.
Actual behavior
Internet Explorer 11 shows an script error dialog containing the following:
Reproducible demo
None
The text was updated successfully, but these errors were encountered: