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
8 Replies
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
I don't think that's how you do it?
where did you see that was the new way?
Configuration files - Drizzle ORM
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
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.
also in new features on their github https://github.com/drizzle-team/drizzle-kit-mirror/releases/tag/v0.20.0
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...
hmm
solved it by removing utils from import like so
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...