Friday 15 May 2020

promise is undefined ie11

Answer: Use the npm es6-promise-promise to solve promise is undefined ie11

You need to install npm once imstalled then use this code to to solve promise function error

var ES6Promise = require("es6-promise");
ES6Promise.polyfill();
var axios = require("axios");

Other solution

You can resolve this error to adding 1 js in head tag. Use this script https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js

Search keywords for promise is undefined ie11

  • es6-promise-promise
  • ie11 promise polyfill
  • promise polyfill for ie

No comments:

Post a Comment



Asp.net tutorials