【问题标题】:ExtJs : Migration to 6.5 from 6.2.1: $'{'framework.name'}'.properties does not existExtJs:从 6.2.1 迁移到 6.5:$'{'framework.name'}'.properties 不存在
【发布时间】:2019-07-15 17:38:14
【问题描述】:

我当前的 ExtJs 应用程序是使用 6.2.1 版本构建的。

我安装了新的 Sencha Cmd 6.5 还有 ExtJS 6.5 框架,在这个目录上:“D:\TOOLS\Sencha\ext-6.5.0”。

但是当我启动升级命令时:

sencha app upgrade -ext -path "D:\TOOLS\Sencha\ext-6.5.0"

首先我有以下警告:

[WRN] 禁用框架:当前版本 6.5.0.775 与所需版本 6.2.1.167 不兼容

然后构建因此错误而失败

com.sencha.exceptions.ExNotFound: 所需属性文件 D:\AllAtrium\trunk\Web\src\trunk\FrontExtJs.sencha\app\$'{'framework.name'}'.properties 不存在

这个缺失的变量仍然被声明到文件“MyApp\ext\cmd\sencha.cfg”中。

如何解决这个问题?

还有其他方法可以将应用从 v6.2 迁移到 v6.5 吗?

完整日志:

Sencha Cmd v6.5.0.180
[WRN] D:\Web\src\trunk\FrontExtJs\.sencha\app contained customized file Microloader_orig.js
[WRN] D:\Web\src\trunk\FrontExtJs\.sencha\app contained customized file sencha.cfg.bak
[WRN] Directory D:\Web\src\trunk\FrontExtJs\.sencha\app could not be removed
[INF] Loading configuration for framework directory: D:\TOOLS\Sencha\ext-6.5.0
[INF] Copying framework to D:\Web\src\trunk\FrontExtJs\ext
[INF] Upgrading to Ext JS 6.x
[INF] Upgrading to sdk at D:\TOOLS\Sencha\ext-6.5.0
[INF] Updating application and workspace from Ext JS 6.2.1.167 / Cmd 6.2.1.29
[WRN] Disabling framework : current version 6.5.0.775 is incompatible with required version 6.2.1.167
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExNotFound: Required property file D:\Web\src\trunk\FrontExtJs\.sencha\app\$'{'framework.name'}'.properties does not exist
[ERR]
[ERR] Total time: 0 seconds
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.BasicException: com.sencha.exceptions.ExNotFound: Required property file D:\Web\src\trunk\FrontExtJs\.sencha\app\$'{'framework.name'}'.properties does not exist
[ERR]
[ERR] Total time: 1 second
[ERR] com.sencha.exceptions.BasicException: com.sencha.exceptions.ExNotFound: Required property file D:\Web\src\trunk\FrontExtJs\.sencha\app\${framework.name}.properties does not exist
[ERR]
[ERR] The application was last modified by an older version of Sencha Cmd (6.2.1.29).
[ERR] Running "sencha app upgrade" may resolve the error described above.
[ERR]

【问题讨论】:

    标签: upgrade extjs6 sencha-cmd


    【解决方案1】:

    我的回答可能来得太晚了,但至少可能会对其他人有所帮助:

    到目前为止,我已经升级了相当多的应用程序(包括夜间构建在内的主要和次要应用程序),并且我很少能够使用 Sencha Guide 升级应用程序而不会出现错误

    我发现:

    • 生成另一个同名的应用程序
    • 将(几乎)所有文件和文件夹复制到新应用中(/app 除了 Application.js/overrides, /resources, /sass 等)
    • 从 2 个应用程序中手动更改(合并)app.json 文件和 Application.js 文件 - 特定于框架的声明可能不同。
    • 运行应用程序构建

    注意1:升级到最新的 Sencha Cmd 版本(为简化起见)。

    注意2:sencha upgrade 安装新版本(如果存在)但不卸载旧版本。确保您使用的是最新版本。

    【讨论】:

      【解决方案2】:

      我必须运行sencha app install,它将重新填充丢失的文件。一旦我运行它,sencha app upgrade 就会顺利运行。运行sencha help app install 了解更多信息。

      【讨论】:

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