Type error: Could not find a declaration file for module 'drizzle-kit'.

SSlavi5/8/2023
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')
ASAndrii Sherman5/8/2023
We don’t have @types package for drizzle-kit

You just need drizzle-kit dependency
SSlavi5/8/2023
SSlavi5/8/2023
I have this error on Vercel build too
ASAndrii Sherman5/8/2023
oh yeah
ASAndrii Sherman5/8/2023
you are using latest drizzle-kit
ASAndrii Sherman5/8/2023
and ts config is available in internal release
ASAndrii Sherman5/8/2023
drizzle-kit@db-push has it
ASAndrii Sherman5/8/2023
you can either install it
ASAndrii Sherman5/8/2023
or move to .json file
ASAndrii Sherman5/8/2023
also config ts file will be available in latest super soon
SSlavi5/8/2023
mhh
SSlavi5/8/2023
@Andrew Sherman
SSlavi5/8/2023
This is my old configuration and it stopped working after the last update.
SSlavi5/8/2023
I'm trying to figure out exactly where I'm going wrong.
ASAndrii Sherman5/8/2023
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
ASAndrii Sherman5/8/2023
right after db-push will be moved to latest - it will work for you
SSlavi5/8/2023
SSlavi5/8/2023
@Andrew Sherman Can you give me more precise instructions because I can't find a model that works for me.
ASAndrii Sherman5/8/2023
just install drizzle-kit@db-push if you want to use ts config file
ASAndrii Sherman5/8/2023
error from here is not related to drizzle
SSlavi5/8/2023
@Andrew Sherman Thanks, the problem was in my package.json file. Everything is working now.