1. #1
    Sencha User pcr's Avatar
    Join Date
    Jun 2009
    Posts
    183
    Vote Rating
    2
    pcr is on a distinguished road

      0  

    Default Problem with build version of app

    Problem with build version of app


    I migrated the cmd tool from Cmd 250 to Cmd 258.
    I did run: sencha app upgrade ../extjs-4.2.0

    The app still work perfect.

    Then started: sencha app build. The build ended with success with no errors.

    But now the has problems. I see this error msg in Chrome:

    Uncaught TypeError: Object [object Object] has no method 'isLocalRtl' all-classes.js:1

    Does somebody know what the problem here is????

    What is isLocalRtl???

  2. #2
    Sencha User martin17's Avatar
    Join Date
    May 2008
    Location
    Argentina
    Posts
    10
    Vote Rating
    0
    martin17 is on a distinguished road

      0  

    Default


    Same problem here ...
    Sencha Cmd v3.0.2.288.
    Upgrade app from ExtJs 4.1.2 to 4.2.0.
    The application works perfect but when build the application ‚Äč‚Äčthen ends with the following error :

    Code:
    TypeError: 'undefined' is not a function (evaluating 'this.isLocalRtl()')

  3. #3
    Sencha User pcr's Avatar
    Join Date
    Jun 2009
    Posts
    183
    Vote Rating
    2
    pcr is on a distinguished road

      0  

    Default


    Hi
    I had problem with Ext 4.2.0beta
    I moved back to Ext 4.2.0. Problem gone.

  4. #4
    Sencha Premium Member twasink's Avatar
    Join Date
    Oct 2012
    Location
    Brisbane, Australia
    Posts
    97
    Vote Rating
    9
    twasink will become famous soon enough

      0  

    Default


    I'm also getting this problem. I'm using ExtJs 4.2.0 b285, and Sencha Cmd 3.0.2.

    The isLocalRtl method is part of Ext.rtl.AbstractComponent (presumably part of the new Right-to-Left work); the error in question is coming from the definition of Ext.rtl.util.Floating, as packaged up into the all-classes.js file.

    So the bug is that, for some reason, Ext.rtl.util.Floating is being packaged up into the all-classes.js file, but the other Ext.rtl classes (especially Ext.rtl.AbstractComponent) are not.
    Last edited by twasink; 17 Jan 2013 at 3:39 AM. Reason: formatting

  5. #5
    Ext JS Premium Member GustavR's Avatar
    Join Date
    Jun 2009
    Posts
    37
    Vote Rating
    18
    GustavR will become famous soon enough

      0  

    Exclamation


    Same Problem here:
    ExtJs 4.2.0.265
    Cmd 3.0.2.288

    Uncaught TypeError: Object [object Object] has no method 'isLocalRtl'



    EDIT:
    After reading the above post again (thanks!), I added "Ext.rtl.AbstractComponent" to requires in my app.js and the error disappeared. This is an acceptable workaround for the time being.

  6. #6
    Sencha Premium Member twasink's Avatar
    Join Date
    Oct 2012
    Location
    Brisbane, Australia
    Posts
    97
    Vote Rating
    9
    twasink will become famous soon enough

      0  

    Default Workaround - manually require the Ext.rtl classes.

    Workaround - manually require the Ext.rtl classes.


    As a work-around, you can add 'Ext.rtl.*' to the requires section of your application. This ensures that the packaging brings in all of the RTL classes.

    I haven't found a way to prevent it needing the RTL classes in the first place.