WatermelonDB: Database failed to load error
After some time spent to set up this package in react native, got this error:
[DB] Uh-oh. Database failed to load, we're in big trouble, [TypeError: undefined is not an object (evaluating 'Native.setUp')]
I am using expo for development.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 32 (1 by maintainers)
The thing is that expo already has support for sqlite. If that is the only native dependency you need then is it reasonable to expand expo support by writing an adapter against the expo’s SQLite interface?
If people want WatermelonDB support in Expo, this is the place to make it known: https://expo.canny.io/feature-requests/p/add-support-for-watermelondb
@bemnet4u I don’t think it’s possible, some basic native support is needed — I think. But you can investigage if you’d like
@theixbass I have the same problem with Expo, how did you resolve in the end (without ejecting)?
I got this same error, so I went to the docs. Adding
<appname>-Bridging-Header.hsolved the problem for me.