1. #1
    Sencha User deepakgarg89's Avatar
    Join Date
    Nov 2012
    Location
    Gurgaon, India
    Posts
    43
    Answers
    4
    Vote Rating
    0
    deepakgarg89 is on a distinguished road

      0  

    Default Unanswered: Error running sencha production build on chrome

    Unanswered: Error running sencha production build on chrome


    I had successfully created a production build with below message

    HTML Code:
    [INFO] Deploying your application to C:\wamp\www\Myapp\build\p
    roduction
    [INFO] Copied sdk/sencha-touch.js
    [INFO] Copied app.js
    [INFO] Copied resources/css/app.css
    [INFO] Copied resources/images
    [INFO] Copied resources/icons
    [INFO] Copied resources/startup
    [INFO] Resolving your application dependencies (file:///C:/wamp/www/Myapp/index.html)
    [INFO] Found 214 dependencies. Concatenating all into 'C:\wamp\www\Myapp\build\production\app.js'
    [INFO] Processed sdk/sencha-touch.js
    [INFO] Minifying sdk/sencha-touch.js
    [INFO] Processed app.js
    [INFO] Minifying app.js
    [INFO] Minifying resources/css/app.css
    [INFO] Minified sdk/sencha-touch.js
    [INFO] Minified app.js
    [INFO] Generated delta for: 'app.js' from hash: '47f5eb5139dc0f446246119d6e22e32
    9d2135f16' to hash: '5cf9c0b79ccd0940054dfa93aa95ee7895d69acb'
    [INFO] Generated delta for: 'app.js' from hash: '227f21c3c31e193f23103f3ed62445c
    4f54758a6' to hash: '5cf9c0b79ccd0940054dfa93aa95ee7895d69acb'
    [INFO] Generated delta for: 'app.js' from hash: 'a230120fc366d1ba83d8f537bc38571
    5462ff131' to hash: '5cf9c0b79ccd0940054dfa93aa95ee7895d69acb'
    [INFO] Generated delta for: 'app.js' from hash: 'abd147b56be451ea02ee437c8744670
    f03bbbcae' to hash: '5cf9c0b79ccd0940054dfa93aa95ee7895d69acb'
    [INFO] Generated delta for: 'app.js' from hash: 'ad05d0289d6840227756655939e9567
    4c49a8a06' to hash: '5cf9c0b79ccd0940054dfa93aa95ee7895d69acb'
    [INFO] Generated delta for: 'app.js' from hash: 'bc88f6efae492fc81fe9a60d5c4e9b5
    aaf836c56' to hash: '5cf9c0b79ccd0940054dfa93aa95ee7895d69acb'
    [INFO] Generated delta for: 'app.js' from hash: 'd6aa25b1e3c1cf5b8b719b6e64c1d40
    3084103b7' to hash: '5cf9c0b79ccd0940054dfa93aa95ee7895d69acb'
    [INFO] Generated delta for: 'app.js' from hash: 'de42db0713c38ccd72e395a313c4843
    4a92a3376' to hash: '5cf9c0b79ccd0940054dfa93aa95ee7895d69acb'
    [INFO] Minified resources/css/app.css
    [INFO] Generated app.json
    [INFO] Generated delta for: 'resources/css/app.css' from hash: '808c7971c49ea031
    70ce40a4ad39447203365562' to hash: 'd9e7bd018eea09cc0660af4dec6d3fb15bc0b774'
    [INFO] Embedded microloader into index.html
    [INFO] Generating checksum for appCache item: index.html
    [INFO] Generated cache.manifest
    Now i am trying to access http://localhost/Myapp/build/production

    On loading i am getting below message in chrome console.

    HTML Code:
    Document was loaded from Application Cache with manifest http://localhost/Myapp/build/production/cache.manifest
    Application Cache Checking eventApplication Cache NoUpdate event
    But after that my app is not working, its just showing me home view.
    No error in console. No tap events working. Its just like it return me a static page.

    Originally there is an image on home view, and when a user tap on it, it redirects the user to another view. But nothing working

  2. #2
    Sencha User deepakgarg89's Avatar
    Join Date
    Nov 2012
    Location
    Gurgaon, India
    Posts
    43
    Answers
    4
    Vote Rating
    0
    deepakgarg89 is on a distinguished road

      0  

    Default Someone please look into this issue.

    Someone please look into this issue.


    No solution till yet

  3. #3
    Sencha User
    Join Date
    Mar 2011
    Posts
    83
    Answers
    16
    Vote Rating
    11
    Schildi will become famous soon enough

      0  

    Default


    Hi deepakgarg89,

    did you try to clear your local storage?
    In Chrome you can do that under Console > Resources > Local Storage.

    Or maybe clearing your cache could also work. Does it work in a different browser, e.g. Safari?

    Best regards,
    Schildi

  4. #4
    Sencha User deepakgarg89's Avatar
    Join Date
    Nov 2012
    Location
    Gurgaon, India
    Posts
    43
    Answers
    4
    Vote Rating
    0
    deepakgarg89 is on a distinguished road

      0  

    Default Hi Schildi,

    Hi Schildi,


    As you suggest i had tried both, also cleared local storage,cache and tried on safari also.

    But the same problem occurs.

    I got below message in chrome console.

    HTML Code:
    Creating Application Cache with manifest http://localhost/Myapp/build/production/cache.manifest
    Application Cache Checking eventApplication Cache Downloading eventApplication Cache Progress event (0 of 1) http://localhost/Myapp/build/production/index.html
    Application Cache Progress event (1 of 1) Application Cache Cached event

  5. #5
    Sencha User
    Join Date
    Mar 2011
    Posts
    83
    Answers
    16
    Vote Rating
    11
    Schildi will become famous soon enough

      0  

    Default


    Hmm, I think this messages are correct. Do you receive them everytime you reload the page?
    Do the other versions like
    sencha app build testing
    and
    sencha app build package
    work?

    Best regards,
    Schildi

  6. #6
    Sencha User deepakgarg89's Avatar
    Join Date
    Nov 2012
    Location
    Gurgaon, India
    Posts
    43
    Answers
    4
    Vote Rating
    0
    deepakgarg89 is on a distinguished road

      0  

    Default Hi Schildi,

    Hi Schildi,


    Yes, i am getting these message everytime.

    I had also tested testing build, but it also not working and there is no message in console.

  7. #7
    Sencha User
    Join Date
    Nov 2012
    Location
    Netherlands
    Posts
    50
    Answers
    6
    Vote Rating
    1
    eastlander is on a distinguished road

      0  

    Default


    What happens if you change update: delta to update: full for the scripts and css in your app.json file?

  8. #8
    Sencha User deepakgarg89's Avatar
    Join Date
    Nov 2012
    Location
    Gurgaon, India
    Posts
    43
    Answers
    4
    Vote Rating
    0
    deepakgarg89 is on a distinguished road

      0  

    Default Hi eastlander,

    Hi eastlander,


    As you suggest i had change update: delta to update: full for js and css. Than i create production build again and tested, but same problem occurs. No tap event working and i am getting below message in chrome console.

    HTML Code:
    Document was loaded from Application Cache with manifest http://localhost/Myapp/build/production/cache.manifest
    Application Cache Checking eventApplication Cache NoUpdate event

  9. #9
    Sencha User
    Join Date
    Nov 2012
    Location
    Netherlands
    Posts
    50
    Answers
    6
    Vote Rating
    1
    eastlander is on a distinguished road

      0  

    Default


    Sencha is storing the js and css files in your localstorage. When Sencha is detecting changes in your manifest file, it replaces the localstorage with the newly loaded files.
    What you see in your console is the status of the manifest file, as you can see Chrome is checking for changes and raises the NoUpdate event which means that your manifest file is unchanged.
    Can you change your manifest file, make some changes in the hash for example. You will see that Chrome is downloading the new manifest file and your app will ask you to reload because it's updated.

  10. #10
    Sencha User deepakgarg89's Avatar
    Join Date
    Nov 2012
    Location
    Gurgaon, India
    Posts
    43
    Answers
    4
    Vote Rating
    0
    deepakgarg89 is on a distinguished road

      0  

    Default Hi,

    Hi,


    I had done some editing and than reload, there is a message prompt of updation than i click on it and it reload cache.manifest but the issue is not resolved. Again no success