-
13 Sep 2012 12:17 AM #1
[2.1.0-b3] Production build is crashing
[2.1.0-b3] Production build is crashing
Hi,
I don´t know if this is a bug in the new Sencha CMD Tool or in beta3 of Sencha 2.1
My building process is going fine but when I run the build like
"http://localhost/builds/appname/production/"
I got this error:
When I run the normal Code (without building it with Sencha CMD) everything is working fine.Code:- [COLOR=red !important]Error evaluating http://localhost/builds/appname/production/app.js with message: TypeError: Cannot call method 'substring' of undefined /builds/appname/production/:19[/COLOR]
- [COLOR=red !important]G[/COLOR]/builds/appname/production/:19
- [COLOR=red !important]c[/COLOR]/builds/appname/production/:20
- [COLOR=red !important]b[/COLOR]/builds/appname/production/:20
- [COLOR=red !important](anonymous function)[/COLOR]/builds/appname/production/:23
- [COLOR=red !important]w[/COLOR]/builds/appname/production/:23
- [COLOR=red !important](anonymous function)[/COLOR]
Greetings -Ralf Kraus-
- [COLOR=red !important]Error evaluating http://localhost/builds/appname/production/app.js with message: TypeError: Cannot call method 'substring' of undefined /builds/appname/production/:19[/COLOR]
-
13 Sep 2012 7:20 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 435
It seems to work for me using Sencha Cmd 3 with ST 2.1.0 b3
> cd /path/to/sencha-touch-2.1.0-beta3
> sencha generate app MyApp ../MyApp
> cd ../MyApp
* edit app.js:
added Ext.Loader.setPath('Ext', 'touch/src'); as first line
> sencha app build production
Then run the production build and it caches things properly.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.



Reply With Quote