-
-
Notifications
You must be signed in to change notification settings - Fork 111
Open
Description
Hello,
We have updated your application to Ember 3.15 and also updated ember-data-model-fragments to 5.0.0-beta.0.
Unfortunately, when loading one of our views, we have the following error message in our web console :
vendor.js:243639 Uncaught Error: You should not change the <type> of a RecordIdentifier
at IdentifierCache._getRecordIdentifier (vendor.js:243639)
at IdentifierCache.getOrCreateRecordIdentifier (vendor.js:243693)
at InternalModelFactory.lookup (vendor.js:249109)
at InternalModelFactory.getByResource (vendor.js:249146)
at Class._internalModelForResource (vendor.js:252904)
at Class.createFragment (vendor.js:267614)
at createFragment (vendor.js:267978)
at vendor.js:266813
at Array.map (<anonymous>)
at normalizeFragmentArray (vendor.js:266786)
We found where the problem came from: our model has a "fragmentArray" attribut of type "billingDetail". This fragment model is defined in the file "models/billing-detail.js". When we change type "billingDetail" to "billing-detail", all works! If we return to "billingDetail", the error come again... Before upgrade, it worked.
We did not change the type in our code, juste display the content of this "fragmentArray" attribut.
What do you think about? Thanks,
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels