PDA

View Full Version : "Simple" example app uses builds/ext-core.js, but doesn't work. ext-debug.js works.



glafrance
27 Mar 2012, 8:52 AM
I'm looking at the ExtJS4 "Simple" example app. When I try to run it I get this error:

uncaught exception: Ext.Loader is not enabled, so dependencies cannot be resolved dynamically. Missing required class: Ext.container.Viewport

If I replace builds/ext-core.js with ext-debug.js in the simple.html file the example works.

Questions:
1) Why exactly is this happening (what's the difference)?
2) How could I get the example to work with builds/ext-core.js?

mitchellsimoens
27 Mar 2012, 10:46 AM
not all builds have Ext.Loader enabled. ext-debug.js has it enabled.


Ext.Loader.setConfig({
enabled : true
});