Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    55
    Vote Rating
    0
    vvatikiotis is on a distinguished road

      0  

    Default ST2.1 RC2 Can't find variable: device

    ST2.1 RC2 Can't find variable: device


    I'm in ST2.1 RC2.

    I try my app in IOS6 Safari and everything works ok.

    I add the app to the Home Screen and then launch it from there. The application gets stuck in the launch screen and using Weinre I get the following error message:

    "error occurred: http://192.168.11.24:8080/devel/reader/sencha-reader/touch/src/device/device/Sencha.js?_dc=1350475622382:7: ReferenceError: Can't find variable: device"

    At the same time and, what it seems to me, randomly I get a message like this:

    "error occurred: http://192.168.11.24:8080/devel/reader/sencha-reader/touch/sencha-touch.js:8332: Error: [Ext.Loader] Failed loading 'touch/src/dataview/component/Container.js', please verify that the file exists"

    The Loader fails at random files; one time could be Component.js, another could be Dataview.js or Model.js or Store.js (and more I don't recall).

    At the same time, the app works in MacOS Chrome 22, IOS6 Safari and Android 4 Browser.

    Thanks

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    34,107
    Vote Rating
    453
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Can I get a test case? I have not had any issue especially with using a dataview (with or without using components)
    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.

  3. #3
    Sencha User
    Join Date
    Jan 2012
    Posts
    55
    Vote Rating
    0
    vvatikiotis is on a distinguished road

      0  

    Default


    Hello,

    I managed to resolve the issue. It involved Ext.device.Device to check the platform. So using the app (no packaging involved) in an iPad was failing, whereas using it for dev in MacOS Chrome was OK. It was OK using the app in an Galaxy Tab 10.1 with Android 4.

    I just stopped using the Ext.device.Device as it was a long forgotten leftover for something I thought I needed.
    thx