drizzle-team / drizzle-orm

Headless TypeScript ORM with a head. Runs on Node, Bun and Deno. Lives on the Edge and yes, it's a JavaScript ORM too 😅
https://orm.drizzle.team
Apache License 2.0
21.44k stars 484 forks source link

[BUG]: Error: Cannot find native module 'ExpoSQLiteNext' #2544

Closed devramsean0 closed 6 days ago

devramsean0 commented 6 days ago

What version of drizzle-orm are you using?

0.31.2

What version of drizzle-kit are you using?

0.22.7

Describe the Bug

Create an Expo SDK 51 app, and follow the expo SQLIte Guide and setup drizzle-kit for migrations with the db initialization stuff in your root layout file

Alternatively, you can see my complete setup at: https://codeberg.org/devramsean0/CardManager

Expected behavior

It loads up fine and creates the db before doing the migration.

Instead gives the error `Cannot find native module 'ExpoSQLiteNext'

Environment & setup

Expo SDK v51 with expo-sqlite 14.03, running in an Android simulator with dev-client

devramsean0 commented 6 days ago

I solved it, turns out my sim was running an outdated dev client