aurelia / bootstrapper

Sets up the default configuration for the aurelia framework and gets you up and running quick and easy.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logic for loading the Polyfill is broken.

singledigit opened this issue · comments

Noticeable in Safari 7. The error I am seeing is

Message: "Error loading "github:aurelia/bootstrapper@0.9.5" at http://10.0.1.17:9000/jspm_packages/github/aurelia/bootstrapper@0.9.5.js
    Can't find variable: Map"
sourceURL: "http://10.0.1.17:9000/"
stack: "execute@http://10.0.1.17:9000/:22:30
ensureEvaluated@http://10.0.1.17:9000/jspm_packages/system.src.js:714:30
ensureEvaluated@http://10.0.1.17:9000/jspm_packages/system.src.js:706:26
ensureEvaluated@http://10.0.1.17:9000/jspm_packages/system.src.js:706:26
ensureEvaluated@http://10.0.1.17:9000/jspm_packages/system.src.js:706:26
ensureEvaluated@http://10.0.1.17:9000/jspm_packages/system.src.js:706:26
ensureEvaluated@http://10.0.1.17:9000/jspm_packages/system.src.js:706:26
ensureEvaluated@http://10.0.1.17:9000/jspm_packages/system.src.js:706:26
execute@http://10.0.1.17:9000/jspm_packages/system.src.js:844:26
doDynamicExecute@http://10.0.1.17:9000/jspm_packages/es6-module-loader.src.js:1929:32
link@http://10.0.1.17:9000/jspm_packages/es6-module-loader.src.js:1977:40
doLink@http://10.0.1.17:9000/jspm_packages/es6-module-loader.src.js:1751:11
updateLinkSetOnLoad@http://10.0.1.17:9000/jspm_packages/es6-module-loader.src.js:1799:24
http://10.0.1.17:9000/jspm_packages/es6-module-loader.src.js:1619:28
tryCatchReject@http://10.0.1.17:9000/jspm_packages/es6-module-loader.src.js:1183:34
runContinuation1@http://10.0.1.17:9000/jspm_packages/es6-module-loader.src.js:1142:18
when@http://10.0.1.17:9000/jspm_packages/es6-module-loader.src.js:930:20
run@http://10.0.1.17:9000/jspm_packages/es6-module-loader.src.js:821:17
_drain@http://10.0.1.17:9000/jspm_packages/es6-module-loader.src.js:97:22
drain@http://10.0.1.17:9000/jspm_packages/es6-module-loader.src.js:62:15"
__proto__: Error
__proto__: Rejected

To fix the error, I changed

System.import('aurelia-bootstrapper');

to

System.import('core-js').then(function() { return System.import('aurelia-bootstrapper'); })['catch'](function (err) { (console.error || console.log)(err); });

Should be fixed in the latest release.