-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
This package doesn't work with NestJS #199
Comments
I haven't looked into it extensively, but it looks like your code is using decorators. esbuild doesn't support decorators: |
Sorry for not reading the readme file carefully. This package is really great as it supports TS + ESM + tsconfigs paths altogether. It's a pity that it's facing this limitation. Maybe I'll look for another solution. I will close this issue for now and reopen it when esbuild supports decorators. |
The issue has been resolved here. |
Nice, thanks for sharing the workaround! |
Bug description
I am using this package to compile my
NestJS
project. The compilation process is successful, but when running the application, it throws an error.I'm not sure if this issue is caused by
NestJS
ortsx
, so I tried compiling my project withts-node
andtsc
, and everything worked fine. That's why I decided to create the issue here.Reproduction
This is the reproduction.
Run the
start:tsx
script and accesslocalhost:3000
, the terminal will log an error:Cannot read properties of undefined (reading 'get')
.You can run the
start:ts-node
orstart:tsc
script and accesslocalhost:3000
to see that the application does not have any errors.Environment
Can you work on a fix?
The text was updated successfully, but these errors were encountered: