【问题标题】:Sencha Cmd 5: app build bundle is missing Ext.application functionSencha Cmd 5:应用程序构建包缺少 Ext.application 功能
【发布时间】:2015-06-10 18:06:59
【问题描述】:

我正在使用 Sencha Command 5.1.3.61(尽管我尝试过其他 5.1 版本)。当我运行 sencha 应用构建测试时,生成的 app.js 包缺少来自 Ext 的所需代码 - 特别是未定义 Ext.application。

我创建了一个空项目进行比较,该项目生成的 app.js 很好,但我的项目缺少 ext-all-rtl-debug.js 中包含的大部分内容

以下是我的 app.json 中的关键部分:

"js": [
    {
        "path": "${ext.dir}/build/ext-all-rtl-debug.js"
    },
    {
        "path": "app.js",
        "bundle": true
    },
    {
        "path": "direct/api-debug.js",
        "remote": true
    }
],
"output": {
  "base": "${workspace.build.dir}/${build.environment}/${app.name}",

  "page": {
    "path": "../../../index.html",
    "enable": false
  },
  "microloader": {
    "path": "microloader.js",
    "embed": true,
    "enable": true
  }

},

【问题讨论】:

  • 在测试时(不构建应用程序)您是否看到任何缺失的类?

标签: extjs sencha-cmd


【解决方案1】:

解决了。 sencha app upgrade -ext[version] 留下了一些 4.x 文件布局,这些布局破坏了捆绑包。我用干净的 5.1 树替换了 ext 文件夹,它现在可以工作了

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多