defineConfig, Cannot find module 'drizzle-kit/utils'

when using the new way to define drizzle config get error Cannot find module 'drizzle-kit/utils' or its corresponding type declarations.ts(2307) using drizzle-orm: 0.29.0 drizzle-kit: 0.20.1
No description
8 Replies
-TheG-
-TheG-OP14mo ago
the error goes away if i remove utils from the import and am able to use drizzle normally so my guess is defineConfig is not in drizzle-kit/utils but is in drizzle-kit but im not sure
josh.sh
josh.sh14mo ago
I don't think that's how you do it? where did you see that was the new way?
josh.sh
josh.sh14mo ago
Configuration files - Drizzle ORM
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
-TheG-
-TheG-OP14mo ago
configuration under overview https://orm.drizzle.team/kit-docs/overview
Drizzle Kit - Drizzle ORM
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
No description
-TheG-
-TheG-OP14mo ago
GitHub
Release 0.20.0 · drizzle-team/drizzle-kit-mirror
Drizzle ORM version 0.29.0 will require a minimum Drizzle Kit version of 0.20.0, and vice versa. Therefore, when upgrading to a newer version of Drizzle ORM, you will also need to upgrade Drizzle K...
No description
josh.sh
josh.sh14mo ago
hmm
-TheG-
-TheG-OP14mo ago
solved it by removing utils from import like so
No description
-TheG-
-TheG-OP14mo ago
https://github.com/drizzle-team/drizzle-orm-docs/pull/159 opened a pr to change it in the docs but i dont know which behavior is intended
GitHub
Update overview.mdx by TheGermanAZ · Pull Request #159 · drizzle-te...
when using the new way to define drizzle config, get error Cannot find module 'drizzle-kit/utils' or its corresponding type declarations.ts(2307) I don't know if defineConfig is suppose...
Want results from more Discord servers?
Add your server