question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error in IE11, "'Promise' is undefined"

See original GitHub issue

Seeing 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:closed
  • Created 8 years ago
  • Reactions:2
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

43reactions
velopertcommented, May 28, 2016

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/

36reactions
mzabriskiecommented, Oct 27, 2015

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found