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
Andrii Sherman
We don’t have @types package for drizzle-kit You just need drizzle-kit dependency
slavi_lns
slavi_lns2y ago
slavi_lns
slavi_lns2y ago
I have this error on Vercel build too
Andrii Sherman
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 soon
slavi_lns
slavi_lns2y ago
mhh
slavi_lns
slavi_lns2y ago
@Andrew Sherman
slavi_lns
slavi_lns2y ago
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.
Andrii Sherman
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
slavi_lns
slavi_lns2y ago
slavi_lns
slavi_lns2y ago
@Andrew Sherman Can you give me more precise instructions because I can't find a model that works for me.
Andrii Sherman
just install drizzle-kit@db-push if you want to use ts config file error from here is not related to drizzle
slavi_lns
slavi_lns2y ago
@Andrew Sherman Thanks, the problem was in my package.json file. Everything is working now.
Want results from more Discord servers?
Add your server