yousefalsayid
yousefalsayid
DTDrizzle Team
Created by yousefalsayid on 6/17/2023 in #help
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!
2 replies