autumnstwilight
DTDrizzle Team
•Created by autumnstwilight on 4/12/2024 in #help
Sqlite syntax error when calling useMigrations in react-native expo app
I still haven't resolved this. I have repeated all the steps for setting up drizzle with expo-sqlite from the documentation in case I missed anything and experimented with Typescript compiler and babel plugins. I regenerated the migrations (so the import statements are back how they originally were) and currently I have the "Migration error: cannot read property 'dialect' of undefined" error occurring.
6 replies
DTDrizzle Team
•Created by autumnstwilight on 4/12/2024 in #help
Sqlite syntax error when calling useMigrations in react-native expo app
Okay, actually it's not fixed. After I did the above steps, I got a new error "Migration error: cannot read property 'dialect' of undefined", implying that it wasn't importing the journal properly. So after some experimentation I went into migrations.js and changed the import/export to the following:
Now it seems to find the journal okay, but I'm back to the original SQL syntax error...
6 replies
DTDrizzle Team
•Created by autumnstwilight on 4/12/2024 in #help
Sqlite syntax error when calling useMigrations in react-native expo app
Update: Managed to solve this. I've been moving things over from another repo and forgot to install babel-plugin-inline-import and update babel.config in the new repo.
6 replies