1. #1
    Sencha User
    Join Date
    Jul 2013
    Vote Rating
    magimat is on a distinguished road


    Default Errors at runtime with generated sencha touch app

    Errors at runtime with generated sencha touch app


    I'm a seasoned java developer, but quite new to sencha touch.

    I began writing a sencha touch application and so far, it is going really good, but I am experiencing a really weird thing when I build my app using sencha cmd tools.

    I mean, I used "sencha generate app" to create my app in the first place and I started coding. My app works really well if I point my browser directly to my app folder.

    If I do a "sencha app build testing", the compilation terminates successfully, but at runtime, I get a weird error complaining about this line:

    "Ext.Viewport.getWindowWidth()" it says something is undefined ?!!?!?

    This is really weird, because it is working all good before compiling. Anyway, for testing purpose I tried removing this line and it works without it.

    Then if I use "sencha app build production" it gets even weirder, because it still compiles successfully, but now I get another error at runtime complaining about some unexpected identifier. (this is something new because with production attribute, I get this error even without the getWindowWidth() line).

    Something is obviously really wrong with this building process, because it is all working before compiling, then compiler finished successfully and still at runtime it fails

    Any help would be really appreciated, because I am really lost here!

    Is there any other way to "compile' my app? All I want is to be able to correctly compress all the javascript so it can load faster.


  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Boise, ID
    Vote Rating
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold



    When in development are you seeing errors logged in the console saying that some classes were loaded synchronously and suggesting that you 'require' the class?

    If not, this might not be quite enough info to go on. In that case I might have you follow the template here for reporting a Cmd issue to help us debug with you:
    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our recruiting manager: sheryl@sencha.com

    heck out all of the 2013 SenchaCon presentations here:

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi