Type error: Could not find a declaration file for module 'drizzle-kit'.
Any idea how to fix this problem?
I try to run this: npm i --save-dev @types/drizzle-kit: npm ERR! Cannot read properties of null (reading 'matches')
12 Replies
We don’t have @types package for drizzle-kit
You just need drizzle-kit dependency
I have this error on Vercel build too
oh yeah
you are using latest drizzle-kit
and ts config is available in internal release
drizzle-kit@db-push
has it
you can either install it
or move to .json file
also config ts file will be available in latest super soonmhh
@Andrew Sherman
This is my old configuration and it stopped working after the last update.
I'm trying to figure out exactly where I'm going wrong.
So I guess previously you was using
drizzle-kit@db-push
version. Because inly this tag has db push
+ ts/js config files preview feature
After upgrading to drizzle-kit@latest
you can't use ts config file and drizzle-kit doesn't have Config type exported
right after db-push will be moved to latest - it will work for you@Andrew Sherman Can you give me more precise instructions because I can't find a model that works for me.
just install
drizzle-kit@db-push
if you want to use ts config file
error from here is not related to drizzle@Andrew Sherman Thanks, the problem was in my package.json file. Everything is working now.