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
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-1636323759
.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-1636323759
GitHub
What version of drizzle-orm are you using? 0.27.0 What version of drizzle-kit are you using? 0.19.0 Describe the Bug I was using Drizzle Kit version of 0.18.1 and generating migrations with this co...