-
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: OptionsError: The database options could not be located/loaded. #888
Comments
|
at the moment
Maybe you can create a pr on how to detect tsx environment |
I am also getting this error and |
can you provide a reproduction repo ? |
Hitting the same error in a NestJs project after switching to SWC, but that comment pointed me in the right direction. Adjusting the data source path pointing to
|
Versions
Reproduction
Can't load data-source when in tsconfig.json there are other options than "outDir": "dist", "rootDir": "./src",
or when there are no dist folder in project
I have dive into your source code and noticed that in the path variable here
typeorm-extension/src/data-source/find/module.ts
Line 88 in 048408c
I expect there /home/timur/dev/project/src/database/type-orm or at least /home/timur/dev/project/my-outDir-name/database/type-orm
Steps to reproduce
What is Expected?
What is actually happening?
The text was updated successfully, but these errors were encountered: