Describe the bug
When throwing an error using JS throw during IE11 development, the following script error dialog occurs:
Object doesn't support property or method 'repeat'
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:
current version of create-react-app: 3.4.1
running from C:\Users\Nathan\AppData\Roaming\npm-cache\_npx\35912\node_modules\create-react-app
System:
OS: Windows 10 10.0.18363
CPU: (12) x64 Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
Binaries:
Node: 12.16.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.4 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.14.4 - C:\Users\Nathan\AppData\Roaming\npm\npm.CMD
Browsers:
Edge: 44.18362.449.0
Internet Explorer: 11.0.18362.1
npmPackages:
react: ^16.13.1 => 16.13.1
react-dom: ^16.13.1 => 16.13.1
react-scripts: 3.4.1 => 3.4.1
npmGlobalPackages:
create-react-app: Not Found
Steps to reproduce
- Add this to the constructor of App.js:
setTimeout(() => { throw new Error("Test throw!!"); }, 3000);
- Open and view in IE11 and wait 3 seconds
Expected behavior
It should show the react error screen.
Actual behavior
Internet Explorer 11 shows an script error dialog containing the following:
errorLine (1)
errorCharacter (250504)
errorCode (0)
errorMessage (Object doesn't support property or method 'repeat')
Reproducible demo
None
Describe the bug
When throwing an error using JS
throwduring 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-jspackage.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