Results 1 to 9 of 9

Thread: Overriding existing mapping Warning After upgrade to ExtJS 6.2 from 6.0.2

  1. #1
    Sencha Premium Member
    Join Date
    Feb 2012
    Posts
    303
    Answers
    7

    Default Overriding existing mapping Warning After upgrade to ExtJS 6.2 from 6.0.2

    Hi, I just upgrade my last app developed with ExtJS 6.0.2 with Modern toolkit.
    I had to upgrade ExtJS framework to to 6.2.0 in order to fix a event listener bug.

    Well right now I have this warning in the console and I have no idea where dees it come from.

    Code:
    [W] Overriding existing mapping: 'Ext.Component' From 'Ext.Widget' to 'Ext.Widget'. Is this intentional?
     /ExtjsApps/EFMM/ext/build/ext-modern-all-debug.js?_dc=1476184328746:6098
    
    [W] Overriding existing mapping: 'Ext.Widget' From 'Ext.Component' to 'Ext.Widget'. Is this intentional?
     /ExtjsApps/EFMM/ext/build/ext-modern-all-debug.js?_dc=1476184328746:6098
    I have only one override inside the application

    /app/plugin/ListPaging.js

    Code:
    Ext.define('EFMM.plugin.ListPaging', {
        extend: 'Ext.plugin.ListPaging',
        alias: 'plugin.ux-listpaging',
        
        loadNextPage: function() {    
            var store = Ext.getStore('EFMM.store.Place');
            var items = store.data.items;
            var count = items.length;
            var index = count-1;
            var ids = items[index].data._id;
            console.log(ids);        
            store.getProxy().setExtraParams({ 'initialId' : ids });
            var me = this;
            if (!me.storeFullyLoaded()) {
                me.disableDataViewMask();
                me.setLoading(true);
                me.getList().getStore().nextPage({ addRecords: true });
            }        
        }
    });
    loaded inside a Dataview List view

    app/view/places/Places.js

    Code:
    var tpl = new Ext.XTemplate(
        '<h1>{title}</h1>',
    );
    Ext.define("EFMM.view.places.Places",{
        extend: "Ext.dataview.List",
        requires: [
            "EFMM.view.places.PlacesController",
            "EFMM.view.places.PlacesModel",
            "Ext.plugin.ListPaging",
            "EFMM.plugin.ListPaging"
        ],
        controller: "places-places",
        viewModel: {
            type: "places-places"
        },
        plugins: [{
            xclass: 'plugin.ux-listpaging',
            autoPaging: true
        }],
        xtype:'places',
        onItemDisclosure:true
        itemTpl: tpl,
        styleHtmlContent: true,
        store:'EFMM.store.Place',
        listeners:{
            itemTap: 'loadPlaceItemTap'
        }
    });

    Any tips?
    Thanks for your help

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    So as far as you can tell your application built properly and is working or is there an issue as well?

  3. #3
    Sencha Premium Member
    Join Date
    Feb 2012
    Posts
    303
    Answers
    7

    Default

    Hi Gary,

    building mobile native version using Sencha Cmd 6.2 no error message are showed.
    I just tested the native version built with cordova and I don't see any problem.

    Just 3 Chrome console warning when I try the app using my local browser.

    In my previous message I forgot the third warning message.

    Code:
    [W] Overriding existing mapping: 'Ext.Component' From 'Ext.Widget' to 'Ext.Widget'. Is this intentional?
     /ext-modern-all-debug.js?_dc=1476184328746:6098
    
    [W] Overriding existing mapping: 'Ext.Widget' From 'Ext.Component' to 'Ext.Widget'. Is this intentional?
     /ext-modern-all-debug.js?_dc=1476184328746:6098
    
    [W] No such config "translationMethod" for class Ext.util.translatable.CssPosition 
    /ext-modern-all-debug.js?_dc=1476196007428:6098

  4. #4
    Sencha Premium User
    Join Date
    Oct 2015
    Posts
    27

    Default

    I get something similar and have no idea, why.

    Code:
    [W] Overriding existing mapping: 'Ext.Gadget' From 'Ext.Component' to 'Ext.Widget'. Is this intentional?
    [W] Overriding existing mapping: 'Ext.Gadget' From 'Ext.Widget' to 'Ext.Component'. Is this intentional?

  5. #5
    Sencha Premium User bobringer's Avatar
    Join Date
    Apr 2007
    Location
    New Jersey
    Posts
    88
    Answers
    1

    Default

    Same here:

    Code:
    [W] Overriding existing mapping: 'Ext.Gadget' From 'Ext.Component' to 'Ext.Widget'. Is this intentional? Util.js?_dc=1476684725127:881
    [W] Overriding existing mapping: 'Ext.Gadget' From 'Ext.Widget' to 'Ext.Component'. Is this intentional? Util.js?_dc=1476684725127:881

  6. #6
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,250
    Answers
    758

    Default

    This warning is benign, you can ignore it, it shouldn't have any impact on your application. It's to do with the way the framework attempts to add some cross toolkit functionality.

    It's been fixed and will be part of the next release.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  7. #7
    Sencha User
    Join Date
    Jul 2017
    Posts
    64
    Answers
    6

    Default

    Has this actually been fixed though? After upgrading from 6.0.2 -> 6.5.2 there are three of these errors getting logged every time the application is opened. I normally wouldn't care, but if you use Firefox then these three objects are automatically expanded, and each one literally takes up more than a full screen window can display. Its a huge pain to collapse all three objects every time I'm debugging something and reload the page...

  8. #8
    Ext JS Premium Member
    Join Date
    Sep 2008
    Posts
    157
    Answers
    1

    Default

    Same error on 6.2.1 Modern, any fix?

  9. #9
    Sencha Premium Member
    Join Date
    Sep 2014
    Location
    New Jersey
    Posts
    166
    Answers
    11

    Default

    Almost 3 years later and I'm not so sure this has actually been fixed.

    While I understand it's benign, I prefer to have a crystal clean dev tools console
    Sencha MVP

Similar Threads

  1. After upgrade to SA4.0.1 some Models not loading, generate error.
    By mazhar.shaikh in forum Sencha Architect 4.x: Bugs
    Replies: 2
    Last Post: 25 Sep 2016, 1:25 PM
  2. Error: Cannot generate app to existing workspace root.
    By rtalton in forum Sencha Architect 3.x: Q&A
    Replies: 5
    Last Post: 11 Aug 2016, 11:56 AM
  3. [INFOREQ] [5.0.2.1559] Overriding existing mapping
    By Zdeno in forum Ext 5: Bugs
    Replies: 1
    Last Post: 12 Nov 2014, 10:15 AM
  4. Error while opening existing project since upgrade to 1.2.3 Build: 52
    By Raymi in forum Ext Designer: Help & Discussion
    Replies: 0
    Last Post: 9 Oct 2012, 11:37 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •