question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Undefined error when evaluating 'this.modelClass.associations'

See original GitHub issue

Hi

We have an app in production which uses the watermelonDb version 0.14.0. Recently we have been getting this error in our Sentry crash reporting:

TypeError: undefined is not an object (evaluating 'this.modelClass.associations')

This generally happens when making queries to the database.

We haven’t been able to replicate the issue locally but according to the crash reports it seems to be only affecting Android devices.

If anyone can offer any insight into this issue that would be great. Thanks

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
MikeWootscommented, Mar 23, 2020

Since upgrading our app to React Native version 0.60.5 and watermelon db to version 0.15.0 we have not experienced this issue.

0reactions
azizhkcommented, May 25, 2020

Same here, stopped seeing this error after upgrading to RN v0.62.2. But now we are seeing React Native’s “Should not already be working.” at almost the same frequency. So it looks like the error just mutated. Just asking here if anyone of you are also seeing it in your error logs? https://github.com/facebook/react-native/issues/28948

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rails Rich Associations - undefined method error
Using this schema, I would assume the "Assignment" model is sort of the join table, which holds the information for which users belong...
Read more >
Changelog - WatermelonDB documentation - GitHub Pages
This change was necessary to fix a long-standing Sync bug. ... [DX] Queries with bad associations now show more helpful error message; [Query]...
Read more >
Systems Analysis and Design Ch. 4-7 Flashcards | Quizlet
b. binary d. undefined. unary. The domain model class diagram is used to ______ . a. show the software classes in the problem...
Read more >
GAMS — A User's Guide
6.3.4 Extended Range Arithmetic and Error Handling. GAMS uses an extended range arithmetic to handle missing data, the results of undefined operations, ...
Read more >
Customizing and Extending IBM Content Navigator
However, it is the user's responsibility to evaluate and ... IBM Corporation, International Technical Support Organization ... attributeName!=undefined).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found