Getting Error Promise is undefined in IE11

后端 未结 7 725
刺人心
刺人心 2020-12-24 11:29

I am converting React code to typescript, target in tsconfig is es5.

on running in IE 11 i get an error \"Promise is undefined\"

I know i need to polyfill,bu

相关标签:
7条回答
  • 2020-12-24 11:57

    You need to add Promise polyfill.

    Include polyfill in your bundle. https://github.com/stefanpenner/es6-promise

    Load polyfill only if the browser / device need: https://www.npmjs.com/package/polyfill-io-feature-detection

    0 讨论(0)
提交回复
热议问题