Ember Store Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'addCanonicalRecordData')

Hi Guys, so I have an Ember app that is connected to a rails backend. I have a weird issue. Basically I am trying to load Messages that belong to a specific chat thread. My user owner or a participant of the said thread. Weird thing is only this one user has this error “Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘addCanonicalRecordData’)”

Messages are loaded from backend I can see them on Network Response Tab. Every other user also their messages loaded and can be seen both on screen and ember inspector.

I am not extremely ember savvy. I took over this project as a dev so let me know if I am missing something in the question.


I’m guessing here based on a quick search through the ember-data source code for addCanonicalRecordData, but this seems related to inverse relationships. Maybe there is an inverse relationship declared incorrectly somewhere in your app?