You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the Bug
Everything works great if I'm running the code with ts-node, however, if I try to compile the code to javascript, and will hit the error for any FieldResolver.
I guess this is somewhat related to #55, and my question is, should we compile a typescript project containing type-graphql down to javascript? Because that's what I normally do in the production environment for better performance.
I tried to set up babel with @babel/preset-typescript, babel-plugin-transform-typescript-metadata and @babel/plugin-proposal-decorators, still no lock.
Thank you!
The text was updated successfully, but these errors were encountered:
should we compile a typescript project containing type-graphql down to javascript? Because that's what I normally do in the production environment for better performance.
You can compile using tsc, you don't need to use babel if you don't know how to configure that 😉
Describe the Bug
Everything works great if I'm running the code with
ts-node
, however, if I try to compile the code to javascript, and will hit the error for anyFieldResolver
.I guess this is somewhat related to #55, and my question is, should we compile a typescript project containing
type-graphql
down to javascript? Because that's what I normally do in the production environment for better performance.I tried to set up babel with
@babel/preset-typescript
,babel-plugin-transform-typescript-metadata
and@babel/plugin-proposal-decorators
, still no lock.Thank you!
The text was updated successfully, but these errors were encountered: