PDA

View Full Version : error I get when following tutorial



Frankrc
16 Sep 2013, 9:42 AM
Hello,

I'm new to extjs and I followed the tutorial. I got the following errors after building my app and getting all-classes.js and app-all.js files from the .jsb3 file. It's the same code as this tutorial http://docs.sencha.com/extjs/4.2.1/#!/guide/getting_started

(http://docs.sencha.com/extjs/4.2.1/#!/guide/getting_started)Here are the errors. My app is working when I run the index.html file, it's the index-prod.html used for the production of the app that is not working.



Uncaught TypeError: Cannot call method 'derive' of undefined ext.js:21 (http://localhost/helloext/extjs/ext.js)




(anonymous function)ext.js:21 (http://localhost/helloext/extjs/ext.js)




Uncaught TypeError: Cannot call method 'onWindowResize' of undefined app-all.js:4 (http://localhost/helloext/app-all.js)




Ext.define.constructorapp-all.js:4 (http://localhost/helloext/app-all.js)
iext.js:21 (http://localhost/helloext/extjs/ext.js)
(anonymous function)app-all.js:4 (http://localhost/helloext/app-all.js)
Ext.ClassManager.processCreateext.js:21 (http://localhost/helloext/extjs/ext.js)
Ext.ClassManager.processCreateext.js:21 (http://localhost/helloext/extjs/ext.js)
(anonymous function)ext.js:21 (http://localhost/helloext/extjs/ext.js)
Ext.apply.onBeforeCreatedext.js:21 (http://localhost/helloext/extjs/ext.js)
Ext.apply.doProcessext.js:21 (http://localhost/helloext/extjs/ext.js)
Ext.apply.processext.js:21 (http://localhost/helloext/extjs/ext.js)
Ext.Class.cext.js:21 (http://localhost/helloext/extjs/ext.js)
Ext.ClassManager.createext.js:21 (http://localhost/helloext/extjs/ext.js)
Ext.apply.defineext.js:21 (http://localhost/helloext/extjs/ext.js)

(anonymous function app-all.js:4


Thank you very much
(http://localhost/helloext/app-all.js)



(http://localhost/helloext/app-all.js)

slemmon
18 Sep 2013, 1:26 PM
What version of the ExtJS framework are you using? 3.4.1? 4.2.1? Other?

Also, what version of Cmd are you working with ("sencha which" to get the full version)?