Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NativeModules.DatabaseBridge is not defined #1408

Closed
Fox333-Lab opened this issue Oct 8, 2022 · 11 comments
Closed

NativeModules.DatabaseBridge is not defined #1408

Fox333-Lab opened this issue Oct 8, 2022 · 11 comments

Comments

@Fox333-Lab
Copy link

Hi All,

i am new to using watermelondb and now getting below 2 error when running in android emulator

Note:
I am using react 60+, 0.69.6 to be precise
App is created using expo cli

image

image

Can anybody help please,

Thanks in advance

@val089
Copy link

val089 commented Nov 10, 2022

I have got the same problem

@val089
Copy link

val089 commented Nov 14, 2022

Anybody know how to fix it?

@mrfrigerio
Copy link

You have to install the SQLite module, so, if you are using expo, run this line on terminal:
npx expo install expo-sqlite

@KrisLau
Copy link
Contributor

KrisLau commented Jan 13, 2023

@radex radex closed this as completed Feb 3, 2023
@starfreck
Copy link

I started facing the same issue with Expo 48.0.10

"dependencies": {
"@morrowdigital/watermelondb-expo-plugin": "^2.1.0",
"@nozbe/watermelondb": "^0.25.5",
"@pchmn/expo-material3-theme": "^1.0.1",
"@react-native-community/masked-view": "^0.1.11",
"@react-navigation/native": "^6.1.6",
"@react-navigation/stack": "^6.3.16",
"axios": "^1.3.5",
"dotenv": "^16.0.3",
"expo": "^48.0.10",
"expo-constants": "~14.2.1",
"expo-secure-store": "~12.1.1",
"expo-splash-screen": "~0.18.1",
"expo-sqlite": "~11.1.1",
"expo-status-bar": "~1.4.4",
"react": "18.2.0",
"react-native": "0.71.6",
"react-native-gesture-handler": "~2.9.0",
"react-native-keyboard-aware-scroll-view": "^0.9.5",
"react-native-safe-area-context": "^4.5.0",
"react-native-screens": "^3.20.0",
"react-native-svg": "13.4.0",
"react-navigation": "^4.4.4",
},

Does anyone know how to fix it?

@KrisLau
Copy link
Contributor

KrisLau commented Aug 25, 2024

@Usman-0250 Everything related to this thread has been fixed as of the latest version of WatermelonDB if you read the thread linked on my old comment: #1408 (comment).

@KrisLau
Copy link
Contributor

KrisLau commented Aug 26, 2024

@Usman-0250 You just need to follow the instruction in the watermelonDB docs and make sure all your package versions (for expo and 🍉 ) are up to date. Also it doesnt work with new architecture yet if you are using jsi. Aside from that, no one can help you as you have not provided any information on your errors or setup and the error described on this thread has been resolved

@KrisLau
Copy link
Contributor

KrisLau commented Aug 28, 2024

@Usman-0250 Like I previously mentioned, the error described on this thread has been resolved so the issue is likely somewhere with your own setup. I would recommend using the official watermelon db to setup instead of the blog post and doing it in a brand new project to test. If you are still running into issues after that, create a new issue ideally with that fresh project linked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants
@radex @mrfrigerio @starfreck @val089 @KrisLau @Fox333-Lab and others