tsc command fails when using sqlite
Hey, just started using the library, and I'm having issues running the
tsc
command. Here's the output (shortened a lot though):
Even though I'm only using sqlite, it seems that typescript is checking for all of the codebase, including mysql and pg types, which break since I don't have the packages installed.5 Replies
If you're using sqlite, you gotta be careful and import either from "drizzle-orm" or "drizzle-orm/sqlite-core"
I'm already doing that. I'm importing from these places:
drizzle-orm/better-sqlite3
dirzzle-orm
better-sqlite3
drizzle-orm/sqlite-core
If I print more of the callstack, I also get pg errors, e.g.:
Can you check if you have "skipLibCheck": true in your tsconfig?
if not, set it
And try again
yeah, setting
skipLibCheck
makes the compilation work. thanks! is this required for drizzle to work? or just a workaround?A little bit of both
You don't want to check the types of all your libraries