0

当我运行 aurelia 的捆绑程序时,我收到以下错误:

D:\Code\Test>aurelia bundle
info: Using Aureliafile: D:\Code\Test\aureliafile.js
info: Creating bundle ...
Potentially unhandled rejection [6] Error: Error loading "aurelia-cli" at file:D:/Code/Test/aurelia-cli.js
Error loading "aurelia-cli" from "aureliafile" at file:D:/Code/Test/aureliafile.js
ENOENT, open 'D:\Code\Test\aurelia-cli.js'
    at Error (native)
4

1 回答 1

2

问题是设置"*" : "*.js"System.Config使用"*"通配符告诉 aurelia 捆绑包拉入所有内容的组合。结果是尝试包含项目根文件。您可以更具体地指定捆绑器:

aureliafile.js:

"dist/app-bundle": {
    modules: [
      'dist/*',
      ...

或重新应用 jspm 映射"*" : "dist/*.js"。不幸的是,我实际上需要的是开发(捆绑)期间的一种配置和生产(服务)期间的另一种配置。

相关问题:

于 2015-06-24T09:23:18.650 回答