undefined is not an object (evaluating 'this.schema.version')
See original GitHub issueHello,
I am trying to get a minimal react native app with watermelon up and running. You can check my code here https://github.com/K4stor/AwesomeNativeApe
I get the message
console.error: "[DB] Uh-oh. Database failed to load, we're in big trouble", TypeError: undefined is not an object (evaluating 'this.schema.version')
_construct
construct.js:30:26
Wrapper
wrapNativeSuper.js:26:23
SyntheticError
index.bundle?platform=ios&dev=true&minify=false:28714:111
reactConsoleErrorHandler
ExceptionsManager.js:135:52
error
index.js:33:53
$Try_1_Catch
common.js:66:29
tryCallOne
core.js:37:14
setImmediate$argument_0
core.js:123:25
callImmediates
[native code]:0
flushedQueue
[native code]:0
Any Idea what to do ?
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Undefined is not an object evaluating adapter.schema
I am trying to integrate WatermelonDb in my React Native App. I am getting an error saying undefined is not an object(evaluating ......
Read more >undefined is not an object (evaluating 'this.schema.version')
Hello,. I am trying to get a minimal react native app with watermelon up and running. You can check my code here https://github.com/K4stor/ ......
Read more >ERROR TypeError: undefined is not an object (evaluating ...
Ever encountered this error → ERROR TypeError: undefined is not an object (evaluating '_this.props.navigation.navigate') whilst working hard on your project?
Read more >DataStore - Schema updates - JavaScript - AWS Amplify Docs
DataStore evaluates this version on startup and if there are changes the local items on device will be removed and a full sync...
Read more >receiving [TypeError: undefined is not an object (evaluating ...
schema after the schema class name, as shown in Tutorial. Change the code statement const realm = await Realm.open({schema: [Track]}); to const ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I think this needs to be fixed in documentation.
hi, i have the same problem… just change de export part.
export const mySchema [Remove] export default mySchema [OK]
or when you called, you should be do this.
import { mySchema } from ‘[Location]’
regards