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
Andrii Sherman15mo ago
We don’t have @types package for drizzle-kit You just need drizzle-kit dependency
slavi_lns
slavi_lns15mo ago
slavi_lns
slavi_lns15mo ago
I have this error on Vercel build too
Andrii Sherman
Andrii Sherman15mo ago
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_lns15mo ago
mhh
slavi_lns
slavi_lns15mo ago
@Andrew Sherman
slavi_lns
slavi_lns15mo 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
Andrii Sherman15mo ago
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_lns15mo ago
slavi_lns
slavi_lns15mo ago
@Andrew Sherman Can you give me more precise instructions because I can't find a model that works for me.
Andrii Sherman
Andrii Sherman15mo ago
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_lns15mo 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
More Posts
Typescript error that doesn't make a whole lot of sense when calling db.select or db.insertThis is my account model ``` export const accounts = mysqlTable("accounts", { id: nanoid("id", {Are default values not transferred over via drizzle-zod?It seems like when I use a `default([])` in my `schema` file that when I create a Zod object, I haveReplace on InsertI can see that there is a `.ignore()` option added to insert, but is there an equivalent `.replace()Is there a way to modify the select() on an existing query ?Let's say I have this query that I pass to a function ```ts const query = db.select().from(myTable)The inferred type of '<tableName>' cannot be named without a reference to '.pnpm/zod@3.21.4I'm trying to use the `drizzle-zod` but I keep getting this error... Any idea on where it comes froMigration failure on fresh DBI'm currently experiencing a migration failure on a fresh Postgres DB with both postgres.js and nodeUsing Vercel Postgres and developing locallyTo confirm, if I want to use Vercel Postgres in production and a local Postgres DB for development, Custom Type interpreted as StringHello everyone, I am having some issues with getting Drizzle to work with PostGIS, I am trying to haCan I use queryBuilder for inserts?My scenario is that I want to read some rows from a database (prod), and generate a SQL file that weI ran introspect:pg to initialize my schema, then created a new migration. How should I deploy this?The remote database, right now, doesn't have the `drizzle.__drizzle_migrations` table. It'd be nice