Closed ma13gagan closed 1 year ago
Hey 👋
Can you provide a repository that can reproduce this?
Hi @igalklebanov,
Here is the repo link nextjs-kysely-migration
You need to use an absolute path to the built javascript migrations. You are using a relative path to the typescript migrations. Node can't run typescript.
Hey
While I am running the migration in a nextjs ts project, I am getting the below error
I am using the PlanetScale Serverless Driver for the prject. But for the migrations I am using the inbuilt MysqlDialect. Below is the migration script.
I build this file with
tsc -t ES2015 --moduleResolution node scripts/migrate.ts