I'v created a project with sencha, and it runs well in local.
Then I want to release it to my webserver, so I build it with this command: "sencha app build production", and build success.
I put the build folder to my server, but it doesn't work, shows the following error: "Uncaught TypeError: Cannot read property 'getIdProperty' of undefined".
And I found this error happened when called function store.load(). getIdProperty function may invoke in class Reader extractData function.
Ext.define('Ext.data.reader.Reader', {
... other codes...
extractData : function(root) {
var me = this,
records = [],
length = root.length,
model = me.getModel(),
idProperty = model.getIdProperty(),
fieldsCollection = model.getFields(),
node, i, data, id, clientId;
... other codes...
}
after "model = me.getModel()", the model is null so it will be error when invoke model.getIdProperty()
Is there someone get the same problem?
build app can't work (Sencha Cmd v5.0.3.324)
Aucun commentaire:
Enregistrer un commentaire