-
26 Mar 2012 12:06 AM #1
Sencha build generates errors in JS
Sencha build generates errors in JS
After running sencha -p app.jsb3 -d I get succesfull messages like this:
I replaced html with this one:Code:Loading the Project Name Project Loaded 0 Packages Loaded 2 Builds * Parse all-classes.js with options: - debug: false - debugLevel: 1 - compress: true * Parse app-all.js with options: - debug: false - debugLevel: 1 * Compress and obfuscate app-all.js... Copy resources... Done building!
But:Code:<!DOCTYPE HTML> <html manifest="" lang="en-US"> <head> <meta charset="UTF-8"> <title>TimTrak</title> <script type="text/javascript" src="../lib/sencha-touch/sencha-touch.js"></script> <script type="text/javascript" src="all-classes.js"></script> <script type="text/javascript" src="app-all.js"></script> </head> <body> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> </body> </html>
1. sencha all-classes is not compressed/minified - it contains comments and is "readable"
2. When running application I get 'undefined' is not an object (evaluating 'Ext.util.Date')' in both files (app-all.js and all-classes.js) in lines:
Code://<deprecated product=touch since="2.0"> Ext.apply(Ext.util.Date, utilDate); //</deprecated>
-
26 Mar 2012 8:00 AM #2Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,652
- Vote Rating
- 14
It looks like you are trying to use a deprecated method. If you want to use this method, you will need to be in compatibility mod (version of 2 instead of 3).
-
26 Mar 2012 8:07 AM #3
How can i know that i use deprecated method of i get No warning during normal run (using microloader)?
The error i posted is in ST code
-
26 Mar 2012 8:13 AM #4Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,652
- Vote Rating
- 14
We will see if it's possible in this case (sometimes it's very hard to provide warnings).
-
28 Mar 2012 3:28 PM #5Sencha - Sencha Touch Dev Team
- Join Date
- Jul 2009
- Location
- Palo Alto, California
- Posts
- 469
- Vote Rating
- 9
Sencha Touch Lead Architect
-
29 Mar 2012 2:24 AM #6
That would be good idea if "sencha app build" worked but it doesn't (on Mac OS X) - already posted it as a bug couple weeks ago
-
9 Apr 2012 3:29 PM #7Sencha - Sencha Touch Dev Team
- Join Date
- Jul 2009
- Location
- Palo Alto, California
- Posts
- 469
- Vote Rating
- 9
Sencha Touch Lead Architect
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-2586
in
2.1.


Reply With Quote