drizzle.config.ts issues with ESM

Today's release of drizzle-kit, version 0.19.1, added drizzle-kit's ESM support and resolved this GH issue: https://github.com/drizzle-team/drizzle-kit-mirror/issues/55. Now, resolving imports with a '.js' extension, such as
import { table2 } from './table2.js';
import { table2 } from './table2.js';
works, except for in the drizzle.config.ts file, where it will still throw an error
Error [ERR_MODULE_NOT_FOUND]: Cannot find module
Error [ERR_MODULE_NOT_FOUND]: Cannot find module
. The only solution I could think of was updating my tsconfig.json to include drizzle.config.ts, but that didn't work. Any help on this would be greatly appreciated!
GitHub
Issues · drizzle-team/drizzle-kit-mirror
Docs and issues repository for drizzle-kit. Contribute to drizzle-team/drizzle-kit-mirror development by creating an account on GitHub.
1 Reply
Andrii Sherman
cc @alexblokh
Want results from more Discord servers?
Add your server