graphql-nexus / nexus

Code-First, Type-Safe, GraphQL Schema Construction
https://nexusjs.org
MIT License
3.4k stars 275 forks source link

tsc not working with custom scalar #1051

Open martinop opened 2 years ago

martinop commented 2 years ago

When I run tsc, I got this error: image

the same happens running ts-node, but if I add --transpile-only there, it works

I tried with Fully Abstracted Reflection System (https://nexusjs.org/docs/adoption-guides/nexus-framework-users) but no luck.

I'm using a custom next express server.

 "apollo-server-express": "^3.6.3",
  "nexus": "^1.2.0",

the weird thing is that this even load: image but I don't know if its cache or something like that.

I don't know what else to do

santialbo commented 2 years ago

Is the generated nexus typescript file being included in the compilation by your tsconfig.json file? It looks like it isn't.