-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
How to use with NestJs and decoration #183
Comments
My solution is to replace @nx/esbuild:esbuild with |
That's interesting to know @chrisDupuis thanks. Yes, the plugin's use of |
I would be interested in any links you might have for how |
Ah, just done a little research and I understand the issue now - Someone here is talking about using an esbuild plugin to pre-compile typescript before esbuild gets it. https://hackernoon.com/using-typescript-decorators-with-esbuild |
We also solved it by using webpack instead of esbuild This was some time ago so i am not 100% sure this config works today. but in the
And the
|
Thanks @Gurey |
As mentioned in the article I linked above, this esbuild plugin seems to be the way to go for decorators with esbuild. https://github.com/thomaschaaf/esbuild-plugin-tsc Would require an esbuild config for function projects that use decorators, so if anyone is able to experiment with this and share their solution that would be great. https://nx.dev/nx-api/esbuild/executors/esbuild#esbuildconfig |
My project use NestJs for firebase function.
All injection are null when running on firebase function.
They re a lot of claim about esbuild and NestJs.
Does someone use NestJs with simondotm/nx-firebase plugIn ?
How to use it with NestJs ?
The text was updated successfully, but these errors were encountered: