Typeorm when trying to run migrations: Missing required argument: dataSource
TypeOrm removed ormconfig.json support in version 0.3.0. You should use new syntax – create ormconfig.ts and specify options for you database, for example: export const connectionSource = new DataSource({ migrationsTableName: ‘migrations’, type: ‘postgres’, host: ‘localhost’, port: 5432, username: ‘user’, password: ‘pass’, database: ‘somehealthchecker’, logging: false, synchronize: false, name: ‘default’, entities: [‘src/**/**.entity{.ts,.js}’], migrations: [‘src/migrations/**/*{.ts,.js}’], subscribers: [‘src/subscriber/**/*{.ts,.js}’], … Read more