我这样设置我的aurelia应用程序:
import "babel-polyfill";
export function configure(aurelia) {
// some config code
}这就是我得到的错误:
Potentially unhandled rejection [3] (SystemJS) Error: Out of stack space
at d (eval code:6:23405)
at d (eval code:6:23405)
at d (eval code:6:23405)
at d (eval code:6:23405)
at d (eval code:6:23405)
at d (eval code:6:23405)
at d (eval code:6:23405)
at d (eval code:6:23405)
at d (eval code:6:23405)
at d (eval code:6:23405)
Evaluating http://localhost:9000/jspm_packages/npm/core-js@2.4.1/modules/es6.map.js
Evaluating http://localhost:9000/jspm_packages/npm/core-js@2.4.1/shim.js
Evaluating http://localhost:9000/jspm_packages/npm/babel-polyfill@6.13.0/lib/index.js
Evaluating http://localhost:9000/jspm_packages/npm/babel-polyfill@6.13.0.js
Error loading http://localhost:9000/jspm_packages/npm/babel-polyfill@6.13.0.js如果我不包含babel-polyfill,可以正常工作,但不使用它不是一种解决办法,因为我需要使用它。这里的问题是:如何在不遇到此错误的情况下继续使用babel-polyfill?
发布于 2016-08-23 10:30:54
要使其正常工作,我必须更改index.html以包含以下内容:
System.import('scripts/core-js.js')
.then(function() {
System.import('aurelia-bootstrapper');
});我从这里下载了脚本文件:https://raw.githubusercontent.com/zloirock/core-js/master/client/core.js,不过您可能可以从npm获得它,我把它放在了core-js.js文件夹中。我相信只要上面的import指向它,你就可以把它放在任何地方。
https://stackoverflow.com/questions/38931917
复制相似问题