Results 1 to 2 of 2

Thread: [Ext JS 4 Desktop Example] Ext.Loader Error: (not enabled so dependencies....)

  1. #1

    Default [Ext JS 4 Desktop Example] Ext.Loader Error: (not enabled so dependencies....)

    hi all,


    I want to play with the Desktop example. I changed the classes.js to App.js in the desktop.html file. The reason is that I want play around each of the files in the project and understand how the whole thing works. I want it to load individual files, not the classes.js.
    But just after this one tiny change, the system barks at me:
    • Uncaught Ext.Error: Ext.Loader is not enabled, so dependencies cannot be resolved dynamically. Missing required classes: Ext.ux.desktop.App, Ext.window.MessageBox, Ext.ux.desktop.ShortcutModel, MyDesktop.SystemStatus, MyDesktop.VideoWindow, MyDesktop.GridWindow, MyDesktop.TabWindow, MyDesktop.AccordionWindow, MyDesktop.Notepad, MyDesktop.BogusMenuModule, MyDesktop.BogusModule, MyDesktop.Settings
    • ext-core.js:15Uncaught Ext.Error: Ext.Loader is not enabled, so dependencies cannot be resolved dynamically. Missing required class: MyDesktop.App
    What am I not doing right?
    Thanks.

  2. #2
    Sencha User
    Join Date
    Jan 2012
    Posts
    1,376
    Answers
    347

    Default

    The error means that the dynamic loading of classes is disabled. You should enable this feature with:
    Code:
    Ext.Loader.setConfig({
        enabled: true,
        ...
    });

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
  •