Replies: 1 comment 3 replies
-
I finally managed to have it running, by replacing
The error message was misleading, nothing to do with the db driver, but rather the DataSource being instantiated with an invalid object as params. While debugging, it appears that typeorm-extension is doing erroneous assumptions when running the cli with node and a tsconfig.json is present in the current working directory. I can setup a basic repo @tada5hi for reproducing the issue if you'd like to. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I try to run the seed command in the context of a NestJS project.
The command is:
node -r dotenv/config ./node_modules/typeorm-extension/dist/cli/index.js seed -r dist/src -d ormconfig
I am preloading (node -r) typeorm-extension env variables from a .env thanks to dotenv. Which contains:
In the built project (under dist folder), the data-source file is located at:
./dist/src/ormconfig.js
Seeds and factory are respectively located under:
./dist/src/modules/data-access/seeds/
and
./dist/src/modules/data-access/factories/
When running the seed command I am getting the following error:
Which does not really makes sense.
It's not clear to me what I am doing wrong, any help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions