煎茶触摸生产构建错误

Sencha touch production build errors

本文关键字:构建 错误 触摸      更新时间:2023-09-26

使用 touch 2.1.0 和 Cmd 3.1.2.342

在尝试创建我的煎茶应用程序的生产版本时,我收到以下错误:

[WRN] C1003:不支持的 Ext.define 语法 -- C:''wamp''www''touch-2.1.0''axis'ativ e''appname''touch''src''fx''TimingFunctions.js:109

[ERR] C2008:要求没有匹配的文件 (Ext.fx.TimingFunctions) -- C:''wa mp''www''touch-2.1.0''axis'ative''appname''touch''src''fx''Abstract.js:959

[ERR] 执行此行时发生以下错误: C:''wamp''www''touch-2.1.0''axis'ative''appname.sencha''app''build-impl.xml:165:

在我看来,它是在说一个名为fx/TimingFunctions.js的文件是fx/Abstract需要的.js但找不到。但是,这不能是它的意思,因为该文件存在于该文件夹中。

我正在使用的命令是:

煎茶应用构建生产

TimemingFunctions.js 的第 109 行如下所示:
Ext.define('Ext.fx.TimingFunctions', Ext.apply({ singleton: true,...

一种解决方案是将 TimingFunctions 的第 109 行.js从:

Ext.define('Ext.fx.TimingFunctions', Ext.apply({

自:

Ext.define('Ext.fx.TimingFunctions', {

并将同一文件的第 136 行从:

}, EasingPrototype));

自:

}, EasingPrototype);

然后,这将允许继续构建。

但是,当我在 Web 浏览器中查看生产应用程序时,它会冻结并出现以下错误

未捕获的类型错误:对象 # 没有方法"调用"进程 sencha-touch-all-debug.js:6767

(匿名函数)进程 sencha-touch-all-debug.js:6774

(匿名函数)煎茶触摸全部调试.js:6779

Ext.apply.onBeforeCreated sencha-touch-all-debug.js:5196

进程 sencha-touch-all debug.js:5262

进程 sencha-touch-all debug.js:5268

进程 sencha-touch-all debug.js:5268

进程 sencha-touch-all debug.js:5268

Ext.apply.process sencha-touch-all-debug.js:5272

Ext.Class.ExtClass sencha-touch-all-debug.js:5183

Ext.ClassManager.create sencha-touch-all-debug.js:6725 Ext.apply.define sencha-touch-all-debug.js:7407

(匿名函数) TimingFunctions.js?_dc=1379403994382:109

(匿名函数) TimingFunctions.js?_dc=1379403994382:138

文件 fx/

Abstract.js 和 fx/TimingFunctions 中存在拼写错误.js实际上,这不是拼写错误 - 更像是语法错误。

摘要.js在 TimingFunctions 中调用函数.js. 在抽象中.js它被称为 EasingMap ,而在 TimingFunctions 中.js它被称为easingMap