12 Apr 2012 3:51 PM #1
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:
$ sencha app build -e native [ERROR] Cannot read property 'package' of undefined
See this thread for more details:
13 Apr 2012 1:47 AM #2
Did you change the build paths in app.json at all?Sencha Touch Lead Architect
13 Apr 2012 9:12 AM #3
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:
/** * Extra resources to be copied along when build */ "extras": [ "resources/images", "resources/icons", "resources/loading" ],
/** * Extra resources to be copied along when build */ "extras": [ "resources/images", "resources/icons", "resources/loading", "resources/data" ],