Hybrid View
-
22 Jul 2011 12:38 AM #1
Deployment Error Sencha SDK Tools: 'TypeError: 'undefined' is not an object'
Deployment Error Sencha SDK Tools: 'TypeError: 'undefined' is not an object'
When I try to generate the .jsb3 file for the example application feed-viewer which is shipped with the Ext JS4 package using
I get the following error message:Code:sencha create jsb -a feed-viewer.html -p app.jsb3
(The example from the API Docs http://docs.sencha.com/ext-js/4-0/#/...etting_started works fine)HTML Code:undefined:0 TypeError: 'undefined' is not an object
I'm using the current Sencha SDK Tools (beta) on a Mac.
Thanks for any help!
-
22 Jul 2011 8:13 PM #2
Any news about this?
I just get the same problem!
Funny thing, I've already generated jsb3 file for my application but now fails.
Regards.UI: Sencha Architect 2.x / ExtJS 4 MVC
Server side: EJB 3.1 / CDI / JPA 2 / JAX-RS / JasperReports
Application Server: Glassfish 3.1.x
Databases: Oracle 10g & 11g / DB2 9 & 10 / Firebird 2.5
If you like my answer please vote!
-
22 Jul 2011 8:30 PM #3
Never mind, me bad:
I mistakely copied production index to development index.
Regards.UI: Sencha Architect 2.x / ExtJS 4 MVC
Server side: EJB 3.1 / CDI / JPA 2 / JAX-RS / JasperReports
Application Server: Glassfish 3.1.x
Databases: Oracle 10g & 11g / DB2 9 & 10 / Firebird 2.5
If you like my answer please vote!
-
24 Jul 2011 10:56 PM #4
Problem also visible in JavaScript Console in Browser
Problem also visible in JavaScript Console in Browser
I actually realized that the error message already appears in the JavaScript console of the Browser (using the Feed Viewer example above). In the Safari console I get
in the class ext-all-debug.js line 17233 (GPL version http://www.sencha.com/products/extjs...-js-4.0.2a/213).Code:TypeError: Result of expression 'o' [undefined] is not an object.
In firefox and Chrome I get similar messages
in firefox andCode:Error: o is undefined
in Chrome respectively.Code:Uncaught TypeError: Cannot read property 'id' of undefined
Any ideas what might cause the problem?
-
25 Jul 2011 4:40 AM #5
Hi JDMOE,
I don't get such an error with the online feed-viewer example: http://dev.sencha.com/deploy/ext-4.0...ed-viewer.html
-
25 Jul 2011 4:46 AM #6
Hi gabrielle,
thanks for the answer. On a different machine (linux and no Mac) I also did not get the error.
Any suggestions what might cause it?
On the other hand, as you can read above. One can reproduce an error similar to the original one using the example from the GettingStarted guide from the API Docs.
-
25 Jul 2011 4:43 AM #7
Error Message can be reproduced on working example when 'Ext.require ..' is removed
Error Message can be reproduced on working example when 'Ext.require ..' is removed
A similar ErrorMessage can be constructed using the deployment example of the GettingStarted API Docs (http://docs.sencha.com/ext-js/4-0/#/...etting_started).
When removing the line
from the file app.js, the commandCode:Ext.require('Ext.container.Viewport');
results in the ErrorMessageCode:sencha create jsb -a index.html -p app.jsb3
In this case, no ErrorMessage appears in the JavaScript console of the browser.HTML Code:undefined:0 TypeError: 'null' is not a constructor
Is there any way to produce a more specific ErrorMessage, or recover the missing 'Ext.require..' in a different way?
Thanks for any help
Jan
-
26 Jul 2011 10:19 AM #8
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote