1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    3
    Vote Rating
    0
    jozefchutka is on a distinguished road

      0  

    Default Unanswered: Broken production build

    Unanswered: Broken production build


    hi everyone,
    I am trying to make my first sencha app running and I am facing a lot of issues.
    • My first issue is with microloader, is this a proper index.html file?
    HTML Code:
    <!DOCTYPE HTML>
    <html manifest="" lang="en-US">
    <head>
        <meta charset="UTF-8">
        <title>XXX</title>
        <script id="microloader" type="text/javascript" src="js/sencha-sdk/microloader/development.js"></script>
    </head>
    <body>
    <div id="appLoadingIndicator"><div></div><div></div><div></div></div>
    </body>
    </html>
    As all my .js dependencies are listed in proper order in app.json, I am able to compile my app using sencha app build testing and I can view my app nicely, everything is working as expected.
    • Now I wanted to create release build so I tried sencha app build production and suddenly started seeing
    Error evaluating <a href="http://localhost/.../SomeJS.js" target="_blank" rel="nofollow">http://localhost/.../SomeJS.js</a> with message: ReferenceError: SomeJs is not defined
    ...in chrome console at runtime
    • I tought maybe chaning microloader/development.js to microloader/production.js would help, but with production.js I am not even able to run production build, I receive:
    [ERROR] TypeError: 'undefined' is not a function
    phantomjs://webpage.evaluate():7
    phantomjs://webpage.evaluate():1
    ...\js\sencha-sdk\command\vendor\phantomjs\dependencies.js:36

    This issue seems to be frequent all over the web but I was not able to find working solution. My code is compiled fine for testing and throws issues at production? Why is that?
    • Is it necessary to replace microloader for production.js in production build, or build process is smart enough to do this itself?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,754
    Answers
    3462
    Vote Rating
    828
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Sencha Command will create the index.html for you and when you do a build it will use the appropriate microloader. When I see the undefined is not a function, that usually means you didn't require a class properly.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1

Tags for this Thread

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