Can I use the NestJS Prop without type with Swc compiler? #9006
sundowatch
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to migrate to swc compiler on NestJS. But I faced compiling typescript issues. For example, I have a model named User:
I'm trying to compile this model by using swc src -d dist command, it throws this error:
It was not a problem to not to use type field in the @prop decorator with the tsc. It automatically determines the types with some exceptions. But swc forces me to define type. I want to use the swc for its speed of compile.
Let me give my configuration files as well:
.swcrc:
tsconfig.json:
nest-cli.json:
Is there any way to use swc to compile my codes without defining the types of the Props?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions