Open imkane opened 10 months ago
Check this #108
Happy to accept a PR to make this better. I am not sure I remember the status of #108 clearly, but I think we need more than the above error report to know specifically what needs to happen to fix it. Can you open a PR with a failing test which illustrates the problem?
Not sure where to add this, but for my project I was able to get Typescript running by using ts-node.
If your project is ESM only: then this is the command that worked for me:
TS_NODE_TRANSPILE_ONLY=true NODE_OPTIONS="--loader=ts-node/esm" npx migrate up
From reading past issues, it sounds like there's not much progress on this. Any timeline for it being introduced?
We've been using migrate for years, but recently started moving to TypeScript, and are getting errors like:
error : Error: Cannot find module '../models/payment_plan'