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
And given the following options set for tsconfig.json:
"emitDecoratorMetadata": true
"experimentalDecorators": true
I can run the code without issue in Node with TSNode. In Bun if I run:
bun run -r reflect-metadata [file.ts]
I get the error Unable to infer GraphQL type from TypeScript reflection system.. I have to change the Query line to what is below so it can run in Bun, which defeats a benefit of using TypeGraphQL to reduce writing redundant typing information.
@Query(_type=>String)
What is the expected behavior?
No errors when running script in Bun.
What do you see instead?
Unable to infer GraphQL type from TypeScript reflection system.
Additional information
No response
The text was updated successfully, but these errors were encountered:
What version of Bun is running?
1.1.8
What platform is your computer?
Darwin 23.4.0 x86_64 i386
What steps can reproduce the bug?
Given the sample code below:
And given the following dependencies:
type-graphql
reflect-metadata
And given the following options set for
tsconfig.json
:"emitDecoratorMetadata": true
"experimentalDecorators": true
I can run the code without issue in Node with TSNode. In Bun if I run:
I get the error
Unable to infer GraphQL type from TypeScript reflection system.
. I have to change the Query line to what is below so it can run in Bun, which defeats a benefit of using TypeGraphQL to reduce writing redundant typing information.What is the expected behavior?
No errors when running script in Bun.
What do you see instead?
Unable to infer GraphQL type from TypeScript reflection system.
Additional information
No response
The text was updated successfully, but these errors were encountered: