Replies: 1 comment 7 replies
-
|
GraphQL Codegen doesn't support ESM currently. I'd recommend you to try a different way to load your schema for now. |
Beta Was this translation helpful? Give feedback.
7 replies
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 have a monorepo set up in vscode with
serverandclientpackages.I'm using
graphql-code-generatorin myclientpackage. This is my setup:codegen.yaml:./schema.ts:In the
serverpackage,schemais generated from type-graphql'sbuildSchema:and when I check the type reported in VSCode, it's
(alias) const schema: GraphQLSchemaIt seems like everything is set up properly, but I get the following error when running
graphql-codegen:What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions