You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use this package, using rockets-starter to understand it.
Each time I try to seed datas, I have this error message :
Cannot read properties of undefined (reading 'name') at new DataSource (/Users/piman/Sites/manitude/node_modules/typeorm/data-source/DataSource.js:46:29) at Object.resolveDataSource (/Users/piman/Sites/manitude/node_modules/@concepta/typeorm-seeding/dist/utils/resolve-data-source.js:8:90)
It seems that the object dataSource from 'this.options' is not accessible inside of the resolveDataSource function, even through it exists in the get dataSource()'s function of the seeding-source.js;
Or maybe I'm not creating my seedingSource object correctly.
I apologize for not responding, I was out on vacation and I am just catching up. Did you ever find the solution on your own, or do you still need help?
Hi,
I'm trying to use this package, using rockets-starter to understand it.
Each time I try to seed datas, I have this error message :
Cannot read properties of undefined (reading 'name') at new DataSource (/Users/piman/Sites/manitude/node_modules/typeorm/data-source/DataSource.js:46:29) at Object.resolveDataSource (/Users/piman/Sites/manitude/node_modules/@concepta/typeorm-seeding/dist/utils/resolve-data-source.js:8:90)
It seems that the object dataSource from 'this.options' is not accessible inside of the resolveDataSource function, even through it exists in the get dataSource()'s function of the seeding-source.js;
Or maybe I'm not creating my seedingSource object correctly.
seeding.ts
ormconfig.ts
typeorm.config.ts
plackage.json scripts
The text was updated successfully, but these errors were encountered: