Codegen not generating in Nextjs13
Unanswered
Japanese flying squid posted this in #help-forum
Japanese flying squidOP
Hello, is anyone working with
When I run the npm script to generate the codegen this is the terminal's output: the
This is my configurations on
hygraph, graphql-request and codegen?, I am having issue generating codegen with nextjs, When I run the npm script to generate the codegen this is the terminal's output: the
Generate never stop loading. api connections is also good> ghaleb-alaskari-general-trading@0.1.0 generate
> graphql-codegen --config codegen.ts
✔ Parse Configuration
⯠Generate outputs
⯠Generate to core/services/hygraph/output/
✔ Load GraphQL schemas
✔ Load GraphQL documents
â ¦ Generate
✔ Generate to ./graphql.schema.json
✔ Parse Configuration
✔ Generate outputsThis is my configurations on
codegen.ts.import type { CodegenConfig } from "@graphql-codegen/cli";
const config: CodegenConfig = {
overwrite: true,
schema: "....",
documents: "core/services/hygraph/queries.ts",
generates: {
"core/services/hygraph/output/": {
preset: "client",
plugins: [],
},
"./graphql.schema.json": {
plugins: ["introspection"],
},
},
ignoreNoDocuments: true,
};
export default config;