Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-2586 in a recent build.
  1. #1
    Sencha User
    Join Date
    Aug 2010
    Posts
    35
    Vote Rating
    0
    yoorek is on a distinguished road

      0  

    Default 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:

    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!
    I replaced html with this one:

    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>
    But:

    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>

  2. #2
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    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).

    Sencha Inc

    Jamie Avins

    @jamieavins

  3. #3
    Sencha User
    Join Date
    Aug 2010
    Posts
    35
    Vote Rating
    0
    yoorek is on a distinguished road

      0  

    Default


    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

  4. #4
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    We will see if it's possible in this case (sometimes it's very hard to provide warnings).

    Sencha Inc

    Jamie Avins

    @jamieavins

  5. #5
    Sencha User Jacky Nguyen's Avatar
    Join Date
    Jul 2009
    Location
    Palo Alto, California
    Posts
    469
    Vote Rating
    14
    Jacky Nguyen has a spectacular aura about Jacky Nguyen has a spectacular aura about

      0  

    Default


    You shouldn't build the app the old way, use Sencha Command instead.
    Sencha Touch Lead Architect

  6. #6
    Sencha User
    Join Date
    Aug 2010
    Posts
    35
    Vote Rating
    0
    yoorek is on a distinguished road

      0  

    Default


    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

  7. #7
    Sencha User Jacky Nguyen's Avatar
    Join Date
    Jul 2009
    Location
    Palo Alto, California
    Posts
    469
    Vote Rating
    14
    Jacky Nguyen has a spectacular aura about Jacky Nguyen has a spectacular aura about

      0  

    Default


    Have you tried the updates?
    Sencha Touch Lead Architect

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi