[2.1]Custom proxy not visible to sencha cmd
Platform:
windows 7,Sencha Cmd v3.0.0.250, ipod(software v6.0.1)
I've following custom proxy class:
Code:
Ext.define('app.tools.Test1', {
extend: 'Ext.data.proxy.Rest',
alias: 'proxy.test1',
config: {
reader: {
type: 'json'
},
writer: {
type: 'json',
writeAllFields: false,
nameProperty: 'mapping'
},
listeners: {
exception: function (s, response) {
...
}
}
},
...
});
and store,which using it:
Code:
Ext.define('app.store.SomeStore', {
extend: 'Ext.data.Store',
requires: ['app.tools.Test1'],
config: {
model: 'app.test.SomeModel'
,proxy: {
type: 'test1',
url: 'some_url',
reader: {
rootProperty:'results'
}
}
, autoLoad: true
}
});
when I test application in chrome browser-all work as expected, 'test1' proxy is found and properly handled.
But,if I trying to do "sencha app build native" to create ios application,I get error:
Code:
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\temp\test\app\store\SomeStore.js => 16 : 8 )
that could be "sencha cmd" problem,but I'm not sure.
Workaround,define:
Code:
constructor: function (config) {
config.proxy = {
type: 'test1',
url: 'some_url',
reader: {
rootProperty:'results'
}
};
this.callParent(arguments);
}
for SomeStore.
Thanks.