typeorm / typescript-express-example

Example how to use Express and TypeORM with TypeScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] Getting error when using Postgres and generating migration

luchillo17 opened this issue · comments

After downloading, installing and adding pg package, i created a database and run this: typeorm migrations:generate -n seller and the result is this:
image

The only change i made was the connection args and the installation of postgres.

Any idea why this error?

@luchillo17 do you still have this issue?

Dunno, let me try.

I remember have used it before for another migration, now it works fine, though i had to adjust the command a bit with ts-node and connection name:
image

But i tried with mine, not with the example repo.