1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    2
    Vote Rating
    1
    RDmytruk is on a distinguished road

      0  

    Default this.xtypesMap is undefined

    this.xtypesMap is undefined


    I'm in the process of upgrading from 4.0.7 to 4.1.1 and I am stuck on this error.

    I am receiving this error which in turn subtly breaks the grids and keeps their loading masks on even though the data has been loaded.

    TypeError: this.xtypesMap is undefined
    [Break On This Error]


    return this.xtypesMap[xtype];


    ext-all-debug.js (line 46166)


    I am unsure what exactly is causing this error as this was a non-issue before upgrading. The only thing I can think of is there is some sort of race condition.
    Any help would be greatly appreciated.

  2. #2
    Touch Premium Member suzuki1100nz's Avatar
    Join Date
    Apr 2011
    Location
    New Zealand
    Posts
    464
    Vote Rating
    69
    suzuki1100nz is just really nice suzuki1100nz is just really nice suzuki1100nz is just really nice suzuki1100nz is just really nice

      0  

    Default


    I would suggest you use firebug or chrome debug tool and set a conditional break point at that line of code 46166 condition 'this.xtypesMap == undefined

    Then re run the site.
    The debugger will stop when the condition is met and you will be able to look at the stack trace and inspect objects and variables to get more information regarding state and the methods that are running to cause the issue.

    Post the details once done

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    2
    Vote Rating
    1
    RDmytruk is on a distinguished road

      1  

    Default


    Thanks, but I seem to have solved it. I have some XTemplates defined within extended abstract components that were the problem. I did not have the alias set on the extended AbstractComponent class and this was causing the error, though I don't know why.

    Simply adding an alias to the class fixed it.

Thread Participants: 1

Tags for this Thread