Sencha触摸生产构建错误 [英] Sencha touch production build errors
问题描述
使用touch 2.1.0和Cmd 3.1.2.342
在尝试创建我的sencha应用程序的生产版本时,我收到以下错误:
[WRN] C1003:不支持的Ext.define语法 - C:\wamp\www\touch-2.1.0\axis\ nativ
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 / Abstract.js需要一个名为fx / TimingFunctions.js的文件,但找不到。
我使用的命令是:
sencha应用程序构建生成
TimingFunctions.js的第109行看起来像这样: br>
Ext.define('Ext.fx.TimingFunctions',Ext.apply({
singleton:true,...
一个解决方案是改变TimingFunctions.js的第109行:
Ext.define 'Ext.fx.TimingFunctions',Ext.apply({
到:
Ext.define('Ext.fx.TimingFunctions',{
并更改第136行file from:
},EasingPrototype));
to:
},EasingPrototype);
然而,当我在Web浏览器中查看生产应用程序时,它会冻结,并得到以下错误
p>
未捕获TypeError:Object#没有方法'call'sencha-touch-all-debug.js:6767
(匿名函数)进程sencha-touch-all-debug.js:6774
< .js:6779
Ext.apply.onBeforeCreated sencha-touch-all-debug.js:5196
process sencha-touch-all-debug.js:5262
process sencha-touch-all-debug.js:5268
process sencha-touch-all-debug.js:5268
process 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
实际上,它不是拼写错误 - 更像一个语法错误。
Abstract.js在TimingFunctions.js中调用函数。在Abstract.js中,它被称为 EasingMap
,其中在TimingFunctions.js中被称为 easingMap
Using touch 2.1.0 and Cmd 3.1.2.342
Whilst trying to create a production version of my sencha app, I get the following error:
[WRN] C1003: Unsupported Ext.define syntax -- C:\wamp\www\touch-2.1.0\axis\nativ e\appname\touch\src\fx\TimingFunctions.js:109
[ERR] C2008: Requirement had no matching files (Ext.fx.TimingFunctions) -- C:\wa mp\www\touch-2.1.0\axis\native\appname\touch\src\fx\Abstract.js:959
[ERR] The following error occurred while executing this line: C:\wamp\www\touch-2.1.0\axis\native\appname.sencha\app\build-impl.xml:165:
It seems to me that it is saying a file called fx/TimingFunctions.js is required by fx/Abstract.js but cannot be found. However, this can't be what it means as the file exists in that folder.
The command I am using is:
sencha app build production
Line 109 of TimingFunctions.js looks like this:
Ext.define('Ext.fx.TimingFunctions', Ext.apply({
singleton: true,...
One solution is to change line 109 of TimingFunctions.js from:
Ext.define('Ext.fx.TimingFunctions', Ext.apply({
to:
Ext.define('Ext.fx.TimingFunctions', {
and change line 136 of the same file from:
}, EasingPrototype));
to:
}, EasingPrototype);
This then allows the build to go ahead.
However, when I then view the production app in the web browser, it freezes and I get the following error
Uncaught TypeError: Object # has no method 'call' process sencha-touch-all-debug.js:6767
(anonymous function) process sencha-touch-all-debug.js:6774
(anonymous function) sencha-touch-all-debug.js:6779
Ext.apply.onBeforeCreated sencha-touch-all-debug.js:5196
process sencha-touch-all-debug.js:5262
process sencha-touch-all-debug.js:5268
process sencha-touch-all-debug.js:5268
process 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
(anonymous function) TimingFunctions.js?_dc=1379403994382:109
(anonymous function) TimingFunctions.js?_dc=1379403994382:138
There was a spelling mistake in the files fx/Abstract.js and fx/TimingFunctions.js Actually, it's not a spelling mistake - more like a grammatical error.
Abstract.js calls a function in TimingFunctions.js. in Abstract.js it is referred to as EasingMap
, where as in TimingFunctions.js it is called easingMap
这篇关于Sencha触摸生产构建错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!