Next.js Discord

Discord Forum

Migrations

Unanswered
Yellow-horned horntail posted this in #help-forum
Open in Discord
Yellow-horned horntailOP
I started working with Next.js an hour ago, and I'm stuck on the migration part. I don't know why it can't find the path. Can someone help me? Thank you.

9 Replies

Yellow-horned horntailOP
Maybe try without that -n, just directly pass it the argument.

-n doesn't exist
Yellow-horned horntailOP
damn my fault
but still doesn't work 😢
You need to pass the path of the migration directly after migration:generate
Yellow-horned horntailOP
without the -d?
@Yellow-horned horntail without the -d?
No you need to pass -d too
Its
npx typeorm migrate:generate <path_of_migration> -d <datasource_path>