PDA

View Full Version : Uncaught TypeError: Object [object Object] has no method 'append'



AdamOS
10 Sep 2013, 8:01 AM
Hi everybody,
I've been working with Sencha Touch for a while but now get cracking on Sencha Cmd. I followed instructions like described here http://docs.sencha.com/touch/2.0.2/#!/guide/getting_started
and generated an application with


$ sencha generate app GS ../GS
It went smoothly without any issues
but when I tried to launch it in Chrome (http://localhost/GS/) and got the following error:



Uncaught TypeError: Object [object Object] has no method 'append' sencha-touch.js:15466
addMeta sencha-touch.js:15466
Ext.apply.setup sencha-touch.js:15500
Ext.apply.application sencha-touch.js:15783
(anonymous function)





Uncaught TypeError: Object [object Object] has no method 'wrap' Container.js?_dc=1378827491837:492
Ext.define.updateUseBodyElement Container.js?_dc=1378827491837:492
setter sencha-touch.js:18571
Base.implement.initConfig sencha-touch.js:18000
Ext.define.constructor Component.js?_dc=1378827491450:967
Base.implement.callParent sencha-touch.js:17736
override.constructor Component.js?_dc=1378827491450:2793
Base.implement.callParent sencha-touch.js:17736
Ext.define.constructor Container.js?_dc=1378827491837:346
Base.implement.callOverridden sencha-touch.js:17852
override.constructor Container.js?_dc=1378827491837:1527
Base.implement.callParent sencha-touch.js:17736
Ext.define.constructor Default.js?_dc=1378827491827:169
Class sencha-touch.js:18288
(anonymous function)
Ext.ClassManager.instantiate sencha-touch.js:20016
(anonymous function) sencha-touch.js:3282
Ext.define.constructor Viewport.js?_dc=1378827491804:40
Class sencha-touch.js:18288
(anonymous function)
Ext.ClassManager.instantiate sencha-touch.js:20016
(anonymous function) sencha-touch.js:3282
(anonymous function) sencha-touch.js:15802
Ext.apply.factoryConfig sencha-touch.js:15838
(anonymous function) sencha-touch.js:15801
Ext.apply.refreshQueue sencha-touch.js:21234
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.refreshQueue sencha-touch.js:21235
Ext.apply.onFileLoaded sencha-touch.js:21559
(anonymous function) sencha-touch.js:3268
onLoadFn sencha-touch.js:21253




I went through app generating several times with various options and always end up with the same result. I found no broken urls or anything like that.
I use Sencha 2.0.2 and Cmd v3.1.2.342

Any help would be really appreciated.

fmoseley
27 Sep 2013, 6:43 PM
Cmd only works with Touch 2.1 and higher