16 Apr 2012 12:05 PM #1
Unanswered: Sencha production build errors out with failure to resolve application dependencies
I am trying to run a sencha touch 2 production build. I changed my index.html to point from sdk/microloader/development.js to sdk/microloader/testing.js.
If i run the sencha app build -e testing command with index.html pointing to testing.js it errors out.
[INFO] Resolving your application dependencies...
[ERROR] Error thown from your application with message: TypeError: 'undefined' i
s not a function
If i point to development.js it works fine. i thought the only difference between development and production is minifying and obsfuscation as well generating cache.manifest.
17 Apr 2012 4:35 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
Do you have any warnings when running your app in the browser that says a class was loaded, consider adding it to the requires?Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
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 firstname.lastname@example.org
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.
17 Apr 2012 4:57 AM #3
When I run with index.html pointing to microloader development.js and run it in the browser or do a build everything runs fine, I do not see any files being loaded by the Ext.Loader asynchronously in the console.
However if I change the index.html to point to microloader testing.js or production.js then it throws out that error.
I am not sure if I am following the right process to generate a production build. Am i Supposed to change the index.html to point to production microloader, I suppose I am.
If not and I keep the reference to development.js and run the production build, then it does not generate the index.html with the embedded microloader.
18 Apr 2012 12:33 AM #4
I'm similarly confused. Is there any documentation around the use of sdk/microloader? I used the SDK to generate an app and have the development.js in my index.html, but when I look at the help pages
there's no mention of that file ( that I can see any how). They just show examples where
is directly included.
Is there any definitive documentation showing how to build for deployment to the App Store?
18 Apr 2012 8:38 AM #5
Basically the last steps from my build are missingIf I keep the reference to development.js then the production build runs fine but does not generate these last steps
[INFO] Generated app.json[INFO] Embedded microloader into index.html[INFO] Generating checksum for appCache item: index.html[INFO] Generated cache.manifest
24 Jul 2012 11:29 AM #6
Bumping this thread because I'm having the same problem. When I point index.html to development.js everything runs as expected. When I point to production.js or testing.js I don't see anything load in the network tab after production.js nor do I see any warnings/errors.
Is there a way I can see what is going on?
9 Oct 2012 10:40 AM #7
Anyone resolve this? I also looking for a solution.
11 Oct 2012 12:13 AM #8
from what i can gather, you created your app from the command line tool, which means you should not need to modify the index.html at all, or at least you should leave the development.js script tag alone.
this is done automatically by the
'sencha app build package' command:
[INFO] Embedded microloader into index.html
this means it has replaced the <script>-tag pointing to development.js with some minified embedded script in your build/production folder.
at least in my case it works just fine like this..
22 Jul 2015 10:36 PM #9
I am getting the below errors while I try to build my application , can any one tell me how to find that where the errors are coming from.Sencha Cmd v188.8.131.52[INF] Processing Build Descriptor : default[INF] Using GPL Version of Ext JS version 184.108.40.2061 from E:\Vikrant\Sencha\VMTest\touch.[INF] The implications of using GPL version can be found here (http://www.sencha.com/products/extjs/licensing).[INF] Loading app json manifest...[ERR][ERR] BUILD FAILED[ERR] com.sencha.exceptions.BasicException[ERR] at com.sencha.tools.compiler.sources.SymbolCache.getAutoDependencies(SymbolCache.java:8[ERR] 13)[ERR] at[ERR] com.sencha.tools.compiler.sources.SymbolCache.getAutoDependencies(SymbolCache.java:813)[ERR] at com.sen[ERR] cha.tools.compiler.sources.SymbolCache.getAutoDependencies(SymbolCache.java:813)[ERR] at com.sencha.tool[ERR] s.compiler.sources.SymbolCache.getAutoDependencies(SymbolCache.java:813)[ERR] at com.sencha.tools.compil[ERR] er.sources.SymbolCache.getAutoDependencies(SymbolCache.java:813)[ERR] at com.sencha.tools.compiler.sourc[ERR] es.SymbolCache.getAutoDependencies(SymbolCache.java:813)[ERR] at com.sencha.tools.compiler.sources.Symbo[ERR] lCache.getAutoDependencies(SymbolCache.java:813)[ERR] at com.sencha.tools.compiler.sources.SymbolCache.g[ERR] etAutoDependencies(SymbolCache.java:813)[ERR] at com.sencha.tools.compiler.sources.SymbolCache.getAutoDe[ERR] pendencies(SymbolCache.java:813)[ERR] at com.sencha.tools.compiler.sources.SymbolCache.getAutoDependenci[ERR] es(SymbolCache.java:813)[ERR] at com.sencha.tools.compiler.sources.SymbolCache.getAutoDependencies(Symbo[ERR] lCache.java:813)[ERR] at com.sencha.tools.compiler.sources.SymbolCache.getAutoDependencies(SymbolCache.j[ERR] ava:813)[ERR][ERR] Total time: 15 seconds[ERR] The following error occurred while executing this line: