Hi i am trying to update my app from 2.13.1 to 2.18.2 . Unfortunately when i reload my site i get the following error
- stack: "Error: Assertion Failed: ‘(unknown mixin)’ does not appear to be an ember-data model↵ at new EmberError (http://localhost:4200/assets/vendor.js:23823:25)↵ at Object.assert (http://localhost:4200/assets/vendor.js:24066:15)↵ at Class._modelFactoryFor
This happens when i refresh my page. I am unable to track down what is the cause for this issue.
Is that the entire stack trace? Have you looked at vendor.js:24066 to see what’s there?
I did a debug on that - could see that issue is related to RelationshipPayloads i guess. On using ember-data 2.11.1 this is working - but any ember-data version above that , this error comes in.
Here what i am doing is i am - since JSON.stringify an ember object, it does NOT save relationships properly. Here I am getting the relationships out of the ember object and manually putting them in the JS plain object before saving it to the localStorage.
what should i do to make this work in higher versions of ember