Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    44
    Vote Rating
    3
    dkamins is on a distinguished road

      0  

    Default app.js and app.json getting overwritten by minified subset of themselves

    app.js and app.json getting overwritten by minified subset of themselves


    I can't reproduce this. It happened to me and broke my build and took hours to unwind and figure out what happened. I'm only 90% sure it was the Sencha build tool's fault. I'm reporting this bug in case other people have a similar problem, hopefully we can figure out a reproducible set of steps to trigger it.

    In my case, the following error happened when trying to build my app (not just for native but any of the targets), but the problem of app.js and/or app.json getting overwritten with minified subsets of themselves might manifest in other ways as well:

    Code:
    $ sencha app build -e native
    
    
    [ERROR] Cannot read property 'package' of undefined

    See this thread for more details:
    http://www.sencha.com/forum/showthre...e-of-undefined

  2. #2
    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


    Did you change the build paths in app.json at all?
    Sencha Touch Lead Architect

  3. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    44
    Vote Rating
    3
    dkamins is on a distinguished road

      0  

    Default


    I only made a single change to app.json, and it was by hand in a text editor (i.e. nothing that would have reformatted the whole file).

    I changed this:


    Code:
        /**
         * Extra resources to be copied along when build
         */
        "extras": [
            "resources/images",
            "resources/icons",
            "resources/loading"
        ],
    to this:

    Code:
        /**
         * Extra resources to be copied along when build
         */
        "extras": [
            "resources/images",
            "resources/icons",
            "resources/loading",
            "resources/data"
        ],
    ... and that was a while ago, with many successful builds since. The app.js and app.json "corruptions" happened more recently.

Thread Participants: 1

Tags for this Thread