ember-data-sails icon indicating copy to clipboard operation
ember-data-sails copied to clipboard

Ember: Cannot read property 'modelName' of undefined

Open mlennie opened this issue 9 years ago • 4 comments

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!

mlennie avatar Jul 31 '15 15:07 mlennie

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 ?

mlennie avatar Jul 31 '15 17:07 mlennie

Running into same issue during upgrade to ember/data 1.13

davidgovea avatar Aug 02 '15 02:08 davidgovea

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.

mukk85 avatar Aug 19 '15 03:08 mukk85

I was getting this in a case where I was still using store.fetchRecord, instead of store.findRecord, while upgrading ember data.

bastianlb avatar Jan 06 '16 23:01 bastianlb