尝试为我的 Sencha Touch Charts 应用程序创建生产版本。
Sencha Touch 2.3.1
Sencha Charts 1.0.1
Sencha Cmd 4.0.2.67
构建运行正常,没有错误。但是,当我尝试运行新的生产版本时,由于所有代码都被缩小,我收到了一个我无法正确识别的错误。
所以,我创建了一个测试版本,使用Sencha app build -e testing -d build
同样,构建执行正常,没有错误。
当我尝试运行我的应用程序时,我收到一个如下所示的错误:
未捕获的类型错误:无法调用未定义 app.js:81009(匿名函数)app.js:81009
进程 app.js:6732
(匿名函数)app.js:6744
Ext.apply.onBeforeCreated app.js:5182的方法“registerType”
流程 app.js:5248
流程 app.js:5254
流程 app.js:5254
流程 app.js:5254
流程 app.js:5254
Ext.apply.process app.js:5258
Ext.Class.ExtClass app.js:5169
Ext.ClassManager.create app.js:6690
Ext.apply.define app.js:7385
(匿名函数)app.js:80773
app.js 的第 80773 行是Ext.define('Ext.chart.interactions.ItemCompare', {
app.js 的第 81009 行是
Ext.chart.interactions.Manager.registerType('itemcompare',Ext.chart.interactions.ItemCompare);
该文件也存在并且在 app.js 中是必需的
该类肯定存在并且'Ext.chart.interactions.ItemCompare'
在 app.js 中