I have this error in development mode of an application with NestJS.
My configuration file is as follows:
export const ORM_CONFIG: TypeOrmModuleOptions = {
keepConnectionAlive: true,
type: 'postgres',
host: 'localhost',
port: 5432,
username: 'postgres',
password: 'postgres',
database: 'aimbra_education',
schema: 'security',
synchronize: true,
entities: [
--Entities
],
// migrations: [__dirname + '/migration/**/*.ts'],
// subscribers: [__dirname + '/subscriber/**/*.ts'],
};
I import into:
@Module({
imports: [
TypeOrmModule.forRoot(ORM_CONFIG),
],
controllers: [AppController],
providers: [AppService],
})
export class AppModule {}
So far I couldn't identify the error of why it works in production and doesn't work in development mode to watch my modifications.
"src/..."
if is there replace it for manually location"../../..."
import { Entity, PrimaryGeneratedColumn, Column } from '../../../node_modules/typeorm';
I tried to add, but it still didn't work ...node_modules
, try with yours services,controllers,modules,entities filestsconfig.json
file content please ?