-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
export ormconfig #5003
Comments
Ran into this issue as well and had to solve it by using the old ts syntax to export |
can you please eleborate why it is designed this way? what benefits it gives? |
This feature was designed long time ago when default exports was not popular or even not possible yet. |
This comment has been minimized.
This comment has been minimized.
babel 7.8.6 stopped to support this syntax and throws error
|
I was still having some problems with the mix between CommonJS (used by the CLI) and ESNext (used by the latest version of NestJS) here is what i did to get around the problem, incase it helps someone having the same problem: ormconfig.ts
in ormconfig_cli.ts
in package.json
in app module:
|
This change should be live in 0.2.29 - which will be released in a few days. At that point you shouldn't need that hack 🙌 But good to know the workaround! |
fixed, thanks |
I want to reopen issue #4068
in short I ask to move from old ts syntax
to new
The text was updated successfully, but these errors were encountered: