-
6 Feb 2013 10:23 AM #1
How to include Ext.Direct into Sencha CMD 3 build process?
How to include Ext.Direct into Sencha CMD 3 build process?
Hello!
My current app.json js config is
This works fine with the microloader, but when I make a production build the direct-api.js is executed before Sencha Touch is loaded and I get a Ext.ns is not a function error.Code:[{ "path": "extjs/extjs.js" /* first load the framework, we need this for the Ext.ns function in the Ext.Direct api*/ }, { "path": "/direct-api.js", /* now include the diret api */ "remote": true }, { "path": "app.js", "bundle": true, /* class dependencies are all concatenated "update": "delta" into this file when build */ }]
How can I solve this? Is there maybe a nice way to pack Ext.Direct api into the app.js?
Thanks
Roland
-
8 Feb 2013 11:54 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,637
- Vote Rating
- 435
You mention before ExtJS is loaded, is this question really for Sencha Touch 2 as Ext JS 4 doesn't use app.json?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
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 services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
8 Feb 2013 7:22 PM #3
Sorry, this was a typo. I was referring to the Ext class. I'm taking about Sencha Touch 2.1.0 and the latest Sencha CMD
Roland Schütz
Senior Software Architect
---
Bancha Project - Seamless integrate CakePHP with ExtJS and Sencha Touch
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote