-
8 Mar 2012 9:54 PM #1
Unable to have files [] in jsb3 generated
Unable to have files [] in jsb3 generated
I tried to use sencha create jsb on some of my project but the files[] are always empty like below:
My project looks fine in Browser and I had Ext.Required specified, but files[] always empty.Code:{ "projectName": "Project Name", "licenseText": "Copyright(c) 2011 Company Name", "builds": [ { "name": "All Classes", "target": "all-classes.js", "options": { "debug": true }, "files": [] }, { "name": "Application - Production", "target": "app-all.js", "compress": true, "files": [ { "path": "", "name": "all-classes.js" }, { "path": "", "name": "app.js" } ] } ], "resources": [] }
Is there any prerequisite to use the Sencha SDK for build?
Does it require MVC structure to work?
I attached the source I have for now. If you can replicate the problem on your end, it would probably be easier to answer what's wrong.
https://github.com/ttback/Ext4Poc
-
9 Mar 2012 8:03 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,684
- Vote Rating
- 435
It seems to work bets in MVC but isn't required. It should evaluate the Ext.require and the different require properties and follow those classes.
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.
-
9 Mar 2012 8:39 AM #3
I had only one require on top of main.js (basically the app.js in examples).
Like Ext.require(['Ext.Viewport','Ext.data.TreeStore']);
I updated later to have the require include grid and tree as well. But there is no difference in output jsb3 file no matter how I tweak the require. Do I have to do something more than this?
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote