How to use the 'overrides' folder generated by Sencha cmd for an Ext JS 4 project

extjs, extjs4

Solution

Turns out I needed to edit the .sencha/app/sencha.cfg file, adding the following to the end of the app.classpath

,${app.dir}/overrides

Thanks to Mitchell over at the official Sencha forums for helping me out! http://www.sencha.com/forum/showthread.php?261361-Properly-using-the-overrides-folder-generated-by-Sencha-Cmd-for-Ext-Js-4.2

Problem

I have generated a project using Sencha cmd. This creates a nice folder named 'overrides' where I have put my overridden Ext.Ajax class. I then include it in my app.js file like so ``` requires: [ 'overrides.Ajax' ] ``` This works just fine when using my app, however when I try to build it using Sencha cmd I get the following error: ``` [ERR] BUILD FAILED [ERR] com.sencha.exceptions.BasicException: The following error occurred while e xecuting this line: [ERR] Z:\public_html\LoginScreen\.sencha\app\build-impl.xml:469: com.sencha.exce ptions.ExBuild: com.sencha.exceptions.ExBuild: Failed to find any files for Z:\p ublic_html\LoginScreen\app\app.js::ClassRequire::overrides.Ajax ``` Does anyone know how to properly include files that are inside the overrides folder?

Original source