I am currently developing a NestJS Application and have integrated TypeORM to connect with my local database. The database is a postgres image running in the background. Although I am able to connect to the image using pgAdmin, I am encountering an error (image attached) when trying to start the application.
Below is the code snippet I have added for configuring TypeORM:
@Module({
imports: [
TyreDetailsModule,
TypeOrmModule.forRoot({
type: 'postgres',
host: 'localhost',
port: 5432,
username: 'postgres',
password: 'postgres',
database: 'testDb',
autoLoadEntities: true,
synchronize: true,
}),
],