aurelia / bootstrapper-webpack

A custom bootstrapper for using Webpack with Aurelia
MIT License
8 stars 6 forks source link

Promise is undefined in IE11 #3

Closed devcube closed 8 years ago

devcube commented 8 years ago

Hi,

When using Internet Explorer 11 I get this error:

SCRIPT5009: 'Promise' is undefined
aurelia-bootstrapper-webpack.js (33,3)

This does not happen on Chrome or Edge (I haven't tried other browsers). This repo uses Promise but the aurelia-polyfills package does not seem to have a Promise export. The fix could be super simple, I'm just not experienced in this world yet :)

Thanks for the aurelia webpack support, it is awesome!

EisenbergEffect commented 8 years ago

I would recommend adding bluebird to handle promises. On Mar 20, 2016 4:57 AM, "devcube" notifications@github.com wrote:

Hi,

When using Internet Explorer 11 I get this error:

SCRIPT5009: 'Promise' is undefined aurelia-bootstrapper-webpack.js (33,3)

This does not happen on Chrome or Edge (I haven't tried other browsers). This repo uses Promise but the aurelia-polyfills package does not seem to have a Promise export. The fix could be super simple, I'm just not experienced in this world yet :)

Thanks for the aurelia webpack support, it is awesome!

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/aurelia/bootstrapper-webpack/issues/3

EisenbergEffect commented 8 years ago

If the loader you are using does not include a Promise polyfill, you will need to include one yourself. We recommend Bluebird.

devcube commented 8 years ago

Thanks @EisenbergEffect, I got it working and also created a PR if you want to add it to the main repo.