-
12 Apr 2012 3:51 PM #1
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
-
13 Apr 2012 1:47 AM #2Sencha - Sencha Touch Dev Team
- Join Date
- Jul 2009
- Location
- Palo Alto, California
- Posts
- 469
- Vote Rating
- 9
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:
to this:Code:/** * Extra resources to be copied along when build */ "extras": [ "resources/images", "resources/icons", "resources/loading" ],
... and that was a while ago, with many successful builds since. The app.js and app.json "corruptions" happened more recently.Code:/** * Extra resources to be copied along when build */ "extras": [ "resources/images", "resources/icons", "resources/loading", "resources/data" ],
Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.


Reply With Quote