Ext.loader not enabled Missing required?

后端 未结 4 1032
半阙折子戏
半阙折子戏 2020-12-31 02:29

I have some problems with Extjs4 librairie. I want to use treeEditor component.

Firebug error :

Error : uncaught exception: Ext.Loader is

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-31 02:36

    The real problem is that you are using ext-debug.js, ext.js

    instead use: ext-all.js or ext-dev.js

    An read about Dynamic Loading

    index.html example:

    
      
          Hello Ext
          
          
          
      
      
     
    

    In the example you dont need to enable Dynamic Loading, because dynamic loading its for development environments. ext-all.js, ext.js is for deploy. ext-all-debug.js and ext-debug.js are for debugging after deploy.

    MVC and Dynamic Loading are useless in deploy, because you must have 1 file generated by sencha cmd (aka Sencha Tools).

提交回复
热议问题