Kelvin
DTDrizzle Team
•Created by Kelvin on 9/7/2024 in #help
Creating migrations while using ES Modules fails with error `Cannot find module '<filename>.js`
Recently I upgraded our CommonJS project to use the modern standard of ES Modules. However, it appears that Drizzle kit either straight up does not support the use of ES Modules, or I have forgotton to add some new configuration after the move. Either way, migrations stopped working after adding the required
.js
file extension when using ESM explicitly when importing Typescript source files.
Any help would be much appreciated as this is a huge show stopper for us.
Pretty much this exact issue.
https://github.com/drizzle-team/drizzle-orm/issues/781#issuecomment-16363237593 replies