Ad

ExtJS ViewConfig Plugin Treeviewdragdrop Throws Error: Uncaught TypeError: Cannot Read Property 'init' Of Null

- 1 answer

Here is my extended Ext.tree.Panel:

Ext.define('WP.view.portlet.Tree', {
    extend: 'Ext.tree.Panel',
    alias: 'widget.portlettree',


    store: 'Portlets',
    rootVisible: false,
    viewConfig: {
        plugins: {
            ptype: 'treeviewdragdrop'
        }
    }
});

When the page is loaded an error is thrown from the PluginManager.js file, line 58:

Uncaught TypeError: Cannot read property 'init' of null

The examples from Sencha use the same configuration, so I'm not sure what I'm missing that is causing this error. Thank you in advance.

Ad

Answer

The error was caused by my referencing only the core ext-debug.js. I updated my HTML file to include ext-all-debug.js and the error is resolved.

Ad
source: stackoverflow.com
Ad