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

Sslavi_lns5/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
Sslavi_lns5/8/2023
Sslavi_lns5/8/2023
I have this error on Vercel build too
ASAndrii Sherman5/8/2023
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
Sslavi_lns5/8/2023
mhh
Sslavi_lns5/8/2023
@Andrew Sherman
Sslavi_lns5/8/2023
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.
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 right after db-push will be moved to latest - it will work for you
Sslavi_lns5/8/2023
Sslavi_lns5/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 error from here is not related to drizzle
Sslavi_lns5/8/2023
@Andrew Sherman Thanks, the problem was in my package.json file. Everything is working now.

Looking for more? Join the community!

Want results from more Discord servers?
Add your server
Recommended 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/[email protected]I'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 Transaction rollbackHello guys. Kind of dumb question but should I cover body of transaction in try/catch and call rollberror creating relationshipI'm having trouble creating a relationship in MySQL using drizzle-orm, I'm running `npx drizzle-kit define default value for arrayI work with a PostgreSQL database. Here is my Schema: export const user = pgTable( 'auth_user',TS query types dont match + no return typesI'm trying to query data from my db after importing the Item table from my schema. `const data = awaCan't generate migrations because of top level awaitThis only recently started happening.Here is my `drizzle.config.json` : ```{ "out": "./migratError types with custom schemaHi, I'm trying to do a general function to paginate my querys, but I'm having some problems with theTrying to write next-auth adapterblahblahblahrober AKA @Dan Kochetov helped me get most of the way to having a next-auth adapter doneBeen getting this error while using the libsql client. The code works though. Any ideas. Thanks! 🙂I get the error from the screenshot every time I access my db client, but the code works fine thoughSelect wildcardI'm sure someone's asked this before but I can't find it. Is there not a way to do a `.select()` wiRangeError: Maximum call stack size exceeded - When I try to INSERTHi, I am getting `RangeError: Maximum call stack size exceeded` when I try to INSERT something in t