Error in IE11, "'Promise' is undefined"
See original GitHub issueSeeing the following error trying to use axios
under IE11 (via parallels): 'Promise' is undefined.
Inspector seems to attribute the error to this line: https://github.com/mzabriskie/axios/blob/master/lib/axios.js#L29
Issue Analytics
- State:
- Created 8 years ago
- Reactions:2
- Comments:9 (1 by maintainers)
Top Results From Across the Web
Getting Error Promise is undefined in IE11 - Stack Overflow
I am converting React code to typescript, target in tsconfig is es5. on running in IE 11 i get ...
Read more >'Promise' is undefined in Internet Explorer (IE 11) - Syncfusion
We suspect that you haven't referred the ES6 Promise polyfill script in your html page which cause this issue in IE11 browser.
Read more >"'Promise' is undefined" error in IE11 even though targeting ES5
The answer for me has been to visit polyfill.io anytime I get a runtime error in IE11. The error almost always gives a...
Read more >'Promise' is undefined in IE11 WordPress
'Promise' is undefined in IE11 WordPress ... Now the problem is, the popups are loading fine on Homepage but not on other pages...
Read more >JavaScript runtime error: 'Promise' is undefined in IE
While using IE11 it return JavaScript runtime error: 'Promise' is undefined in webdatarocks.js file. Please suggest resolve this issue.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
es6-promise-polyfill did not work for me when I was using webpack + babel. This one solved my issue: https://babeljs.io/docs/usage/polyfill/
You need to polyfill
Promise
yourself. You can see specifics in the upgrade guide https://github.com/mzabriskie/axios/blob/master/UPGRADE_GUIDE.md#es6-promise-polyfill