Error with Expo Sqlite + Drizzle
So i try to use Drizzle with expo
everything are set but i got an error
Any idea what the error with this? not sure i follow everything but still getting this error
11 Replies
ops looks like i need to add the metro config and babel but still having experience an error
based on logger
now i got this error
Any idea?
Hi i am facing the same issue currently.
Were you able to fix this? If so what was your solution for this?
Ohhh yes i did fresh setup from drizzle orm + expo-sqlite
But what did you do any different to be able to fix this?
were you able to figure this out cihad? Im having the same error. Tried clearing everything, rebuilding, I have the babel plugin installed, metro config set up, babel config set up, tried npx expo start -c.
STILL not working and im going mad
any intel you can give me would be greatly appreciated 🙏
@snoob yeah kind of.
to be able to debug it a bit better i put my drizzle querys into a try catch and logged the error in the catch block, this helped a lot to identify the actual problem..
maybe also log the error state of your migration..
in my case there was something wrong with the schema itself if i don't remember it wrong
i just checked the fix commit, i also did some changes to the metro config file.
in some tutorials and docs it's stated as assetExts, but using sourceExts might also have fixed it 🤔

if you want i can share the repo with you, it's public.
its by far not a good reference project but it might help you to compare with yours
ohhhh I see okay, so it could just throw some generic error. Thats so funny, claude code made that change, and I was like wow thats random, and undid that sourceExts change. let me try that lol
oh gosh please send it
i don't know if i am violating any rules by sharing here, but here you go:
https://github.com/cihadaydemir/prorgress-tracker
like i said it's not very clean 😄
it's actualy my first expo project ever so i am also still figuring out.
but at least got sqlite + drizzle working for now
GitHub
GitHub - cihadaydemir/prorgress-tracker
Contribute to cihadaydemir/prorgress-tracker development by creating an account on GitHub.
Lol, okay great 😄
I just checked the official drizzle docs.
They actually use sourceExts, but I guess use what ever works 🤷♂️😂
I also don't know the difference, I might change it aswell, if it causes errors in future.