-
Notifications
You must be signed in to change notification settings - Fork 503
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
compatibility with esbuild #1069
Comments
If this is not a misconfiguration, I'd suspect this would more likely be an esbuild issue. |
Guess I was wrong, seems like ts-node has similar issues: #1090 |
Hi - a bit of more information on this bug. On the built code, there is this:
somehow, when built with esbuild, runCLI() is executed when the server starts, which makes the whole server process fail. Do you guys have any ideas on how to solve this? @lukeautry |
Also, info from here:
From node's documentation:
So - would you guys be okay to try to use |
TL;Dr: Yes, feel free to send a PR. It's a better/recommended way of checking anyway and has no compatibility impact. Not sure why esbuild seems to set a parent here in the transpiled code. |
@WoH great! PR done, tests passed. The PR is minimal, but let me know if you have any problems with it. Thanks |
@WoH just so I plan accordingly - are there any releases planned soon for this fix to be available? |
I don't tend to give ETAs for OS stuff. But here's a release you may be interested in: v3.13.0 |
Thanks! |
When importing stuff like
Route
,Body
, etc fromtsoa
, bundling code with esbuild fails and tries to usetsoa
as the cli.Sorting
bug report
feature request
support request
I confirm that I
Steps to Reproduce
esbuild
andtsoa
esbuild src/server.ts target=node --outfile=index.js
node index.js
This can be solved by importing from
@tsoa/runtime
directly.Version of the library:
"tsoa": "^3.9.0"
Version of NodeJS:
v14.17.0
The text was updated successfully, but these errors were encountered: