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 is not an object (evaluating 'this.schema.version')

See original GitHub issue

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/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:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
finomcommented, Jun 2, 2020

I think this needs to be fixed in documentation.

3reactions
FabianEscaratecommented, Mar 2, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

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