-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wiered error. data.data is undefined #3377
Comments
Are you pushing JSON-API data to |
@wecc, no I do not push data manually. And for the new Serializer API I have not yet seen the documentation. Tried to create a jsbin to reproduce but in jsbin everything works fine. Here is my approximate usecase |
thank you @wecc |
I have modified jsbin |
I figured it out. AdressSerializer needs to opt into the new serializer api. We should likely assert for that case and give a better warning. App.AdressSerializer = DS.RESTSerializer.extend(DS.EmbeddedRecordsMixin, {
isNewSerializerAPI: true,
attrs: {
gorods: { embedded: 'always' }
}
}); |
Thank you @bmac, that's do the deal. I'd been setting isNewSerializerAPI on my rest adapter not on rest serializers, my error, thank you for your help |
ran into this also #3379 fixed my problem |
I just published ember-data 1.13.3 with a fix for this bug. |
Hello,
I have a wiered error with ember-data 1.13.1
ember-data.js, line 12671: data.data is undefined, the line in question is:
modelName = data.data.type;
It happens when I call
store.findRecord('record1', id);
my record1 has 3 hasMany relations that are side loaded in the same response. I am using RESTAdapter
The text was updated successfully, but these errors were encountered: