1. #1
    Sencha Premium Member
    Join Date
    Feb 2012
    Posts
    188
    Vote Rating
    1
    davide.peri is on a distinguished road

      0  

    Default "sencha app upgrade -noframework" - app.js error generation

    "sencha app upgrade -noframework" - app.js error generation


    After upgrade the app the app.js file seems to be wrong.

    Code:
    $ sencha app build production
    Sencha Cmd v3.1.1.274
    [ERR] The app was last modified by an older version of Sencha Cmd (3.1.0.256), current is 3.1.1.274. Please run 'sencha app upgrade -noframework' to update.
    [ERR] Application Cmd version mismatch.
    hackd:madideas davide$ sencha app upgrade -noframework
    ....

    the upgrade process add to app.js a wrong code like:

    "<<<<<<< Generated"

    and

    "================"


    Code:
    /*
     * File: app.js
     *
     * This file was generated by Sencha Architect version 2.2.2.
     * http://www.sencha.com/products/architect/
     *
     * This file requires use of the Sencha Touch 2.1.x library, under independent license.
     * License of Sencha Architect does not include license for Sencha Touch 2.1.x. For more
     * details see http://www.sencha.com/license or contact license@sencha.com.
     *
     * This file will be auto-generated each and everytime you save your project.
     *
     * Do NOT hand edit this file.
     */
    
    
    //@require @packageOverrides
    Ext.Loader.setConfig({
    
    
    });
    
    
    Ext.application({
        viewport: {
            autoMaximize: true
        },
    
    
    <<<<<<< Generated
        requires: [
            'Ext.MessageBox'
        ],
    
    
        models:[
            'ContactFormModel'
        ],
    
    
        views: [
            'Main'
        ],
    
    
        stores: [
            'EmpresaStore'
        ],
    
    
        controllers: [
            'MainLangController'
        ],
    
    
        icon: {
            '57': 'resources/icons/Icon.png',
            '72': 'resources/icons/Icon~ipad.png',
            '114': 'resources/icons/Icon@2x.png',
            '144': 'resources/icons/Icon~ipad@2x.png'
        },
    
    
        isIconPrecomposed: true,
    
    
        startupImage: {
            '320x460': 'resources/startup/320x460.jpg',
            '640x920': 'resources/startup/640x920.png',
            '768x1004': 'resources/startup/768x1004.png',
            '748x1024': 'resources/startup/748x1024.png',
            '1536x2008': 'resources/startup/1536x2008.png',
            '1496x2048': 'resources/startup/1496x2048.png'
        },
    
    
    =======
        models: [
            'EmpresaModel'
        ],
        views: [
            'Main'
        ],
        controllers: [
            'MainLangController'
        ],
        name: 'App',
    
    
    >>>>>>> Custom
        launch: function() {
    
    
            Ext.create('App.view.Main', {fullscreen: true});
        }
    
    
    });
    After remove manually the wrong code the app works.

    Regards

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,780
    Vote Rating
    833
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Many times app.js will have a merge conflict and Cmd kind of stomps all over it. We do have a feature request to handle this case better than creating invalid javascript.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1

Tags for this Thread

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