此误导性错误消息指的是您正在使用的机器上 Sencha 的 Cmd 工具的版本更改。您可以使用以下命令升级 Cmd 脚手架:
sencha app upgrade --noframework
来自:'sencha帮助应用升级'
Options
* --noframework, -no - Upgrade only the Sencha Cmd scaffolding and not the SDK
在升级之前一定要备份你的应用程序。upgrade 命令将警告您需要解决的冲突(例如对 app.js 的自定义更改)。当您打开这些文件时,将以标准差异格式记录差异:
<<<<<<< Generated
/*
This file is generated and updated by Sencha Cmd. You can edit this file as
needed for your application, but these edits will have to be merged by
Sencha Cmd when it performs code generation tasks such as generating new
models, controllers or views and when running "sencha app upgrade".
Ideally changes to this file would be limited and most work would be done
in other places (such as Controllers). If Sencha Cmd cannot merge your
changes and its generated code, it will produce a "merge conflict" that you
will need to resolve manually.
*/
...
>>>>>>> Custom
...
解决冲突(删除 >>>>>> X 行并确保文件中包含正确的行),您应该已准备就绪。最有可能发生冲突的文件是 app.js - 最好将该文件的备份版本与修改后的版本进行比较,以确信更改。
这似乎意味着所有开发应用程序的开发人员都需要运行相同的 Cmd 版本,因此请记住这一点。