3 Aug 2012 7:52 AM #1
Ext.Direct is undefined with ext-debug
I am using Sencha Architect 2 In my application development. It uses ext-all-debug.js. Application works fine. But now I want to create a custom build code with Sencha SDK Tools. I shall use ext-debug for this (Sencha SDK Tools do not work with ext-all-debug). But when I run my application with ext-debug I`m getting an Error 'Ext.Direct is undefined' and 'QueryMyFlat is not defined'.
With ext-debug Sencha SDK Tools throws an error:
$ sencha create jsb -a http://localhost/kommuna/index.html -p kommuna.jsb3 -v
Error thown from your application with message: ReferenceError: Can't find variable: QueryMyFlat
How to use Ext.direct with ext-debug.js correctly?
7 Aug 2012 12:02 PM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
Did you require the Ext.direct.* namespace and use the Ext.Direct stuff within the launch/init method of Ext.application?Mitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.