w3tecch / typeorm-seeding

🌱 A delightful way to seed test data into your database.
https://www.npmjs.com/package/typeorm-seeding
MIT License
877 stars 131 forks source link

TypeError: Cannot read properties of undefined (reading 'name') #233

Closed alfiadoDev closed 1 year ago

alfiadoDev commented 1 year ago

hello, I'm having this error when running the seeds.

my ormconfig.json { "name": "default", "type": "postgres", "host": "localhost", "port": 5432, "username": "****", "password": "***", "database": "****", "entities": [ "./src/modules/**/infra/typeorm/entities/*.ts" ], "migrations": [ "./src/shared/infra/typeorm/migrations/*.ts" ], "seeds": ["src/shared/infra/typeorm/seeds/**/*{.ts,.js}"], "factories": ["src/shared/infra/typeorm/seeds/factories/**/*{.ts,.js}"], "cli": { "migrationsDir": "./src/shared/infra/typeorm/migrations" } }

my factory 2022-08-08_13-58

my seed 2022-08-08_13-58_1

error 2022-08-08_14-00