【问题标题】:Aurelia bundle: error loading "aurelia-cli"Aurelia 捆绑包:加载“aurelia-cli”时出错
【发布时间】:2015-06-24 09:23:18
【问题描述】:

当我运行 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)

【问题讨论】:

    标签: jspm aurelia


    【解决方案1】:

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

    aureliafile.js:

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

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

    相关问题:

    【讨论】:

      猜你喜欢
      • 2017-01-03
      • 2019-09-01
      • 2016-03-16
      • 1970-01-01
      • 1970-01-01
      • 2017-07-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多