ember-data-sails
ember-data-sails copied to clipboard
Ember: Cannot read property 'modelName' of undefined
Hi I made a question on stack overflow here: http://stackoverflow.com/questions/31747038/ember-cannot-read-property-modelname-of-undefined
Basically ember is not liking the format of associations in json responses. Thank You!
I got it working by making a custom toJSON()
in the sails models that deletes the associations and adds the association ids instead. But clearly this is a very temporary fix though. Does ember-data-sails
need to be updated for ember-data 1.13
?
Running into same issue during upgrade to ember/data 1.13
I have just submitted a pull request that adds ember-data 2.0 compatibility for sockets, not sure if you are using REST or not, but it should give you an idea of what needs to be updated.
I was getting this in a case where I was still using store.fetchRecord
, instead of store.findRecord
, while upgrading ember data.