After compressing the application using sencha build, the web page is not loading using the new compressed js file.

In the developer tools the following error is throw "Uncaught TypeError: Cannot call method 'getTreeByJurisdiction' of undefined "

The function getTreeByJurisdiction is from a PHP file for directFn directive.

Is there anything special that needs to be done for compressing a ext JS app that uses Ext direct?