typeorm / typescript-express-example

Example how to use Express and TypeORM with TypeScript
361 stars 100 forks source link

[Bug] Getting error when using Postgres and generating migration #2

Closed luchillo17 closed 6 years ago

luchillo17 commented 7 years ago

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?

pleerock commented 6 years ago

@luchillo17 do you still have this issue?

luchillo17 commented 6 years ago

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.