drizzle-kit generate throws SyntaxError: Cannot use import statement outside a module
I have been using drizzle alongside React Native, and everything worked great. Unexpectedly
drizzle-kit generate
stopped working - I built my app and after that it started throwing...
It throws with the following error:
I tried deleting node_modules/, .expo/ package-lock and restarting everything, checked if all versions were up to date... with no luck....
I can't figure out why it would throw an error for code, from another library, where it does not even get called...
Before I start my project from scratch again, anyone had an issue similar to this? 😅1 Reply
To the best of my knowledge, drizzle-kit is bundled as commonjs
So if you're calling anything in yout drizzle config that doesn't use commonjs, it might be the cause of your issue
I might be wrong though