So my Deft version is 0.9.1 and that file does exist. Here is the line highlighted it's complaining about:
Deft.Class.registerPreprocessor('controller', function(Class, data, hooks, callback) {
var self;
Deft.Class.hookOnClassCreated(hooks, function(Class) {
Class.override({
constructor: createControllerInterceptor()
});
});
Deft.Class.hookOnClassExtended(data, function(Class, data, hooks) {
Deft.Class.hookOnClassCreated(hooks, function(Class) {
Class.override({
constructor: createControllerInterceptor()
});
});
});
self = this;
Ext.require([data.controller], function() {
if (callback != null) {
callback.call(self, Class, data, hooks);
}
});
return false;
}, 'before', 'extend');
- Cmd's new "define-rewrite" optimization breaks any user-defined class pre-processors (such as those used by Deft JS). Until we can arrive at a solution with Sencha, this must be disabled. Edit
.sencha/app/production.properties
so it uses build.optimize=
, with no value. Note this has been fixed in the Deft JS 5 release for Ext JS 5 only.
With Cmd 5 changing files, I see this in defaults.properties:
build.optimize.disable=
build.optimize=${build.optimize.disable}
And this in production.defaults.properties:
build.optimize=${build.optimize.disable}
So it appears the build.optimize has no value. Any idea on what to try next?