VisitFn is not a function error #6939
Unanswered
dialformonkey
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hello, I'm have the same problema while using graphql-mesh, it seems to be an issue on graphql-js package. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hi i am having an issue with generating my schema. Attached below are the details. I just
graphql-codegen --config codegen.yml
✔ Parse configuration
❯ Generate outputs
❯ Generate generated/graphql.tsx
✔ Load GraphQL schemas
✔ Load GraphQL documents
✖ Generate
→ visitFn.call is not a function
✔ Generate ./graphql.schema.json
Found 1 error
✖ generated/graphql.tsx
TypeError: visitFn.call is not a function
at Object.visit (/Users/dev/server/cartunesnext/node_modules/.pnpm/[email protected]/node_modules/graphql/language/visitor.js:200:21)
at Object.plugin (/Users/dev/server/cartunesnext/node_modules/.pnpm/@[email protected][email protected]/node_modules/@graphql-codegen/typescript/in
dex.js:367:35)
at executePlugin (/Users/dev/server/cartunesnext/node_modules/.pnpm/@[email protected][email protected]/node_modules/@graphql-codegen/core/index.js:38:35
)
at /Users/dev/server/cartunesnext/node_modules/.pnpm/@[email protected][email protected]/node_modules/@graphql-codegen/core/index.js:167:30
at Array.map ()
at Object.codegen (/Users/dev/server/cartunesnext/node_modules/.pnpm/@[email protected][email protected]/node_modules/@graphql-codegen/core/index.js:157:
54)
at async process (/Users/dev/server/cartunesnext/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@graphql-codegen/cli
/bin.js:1003:56)
at async Promise.all (index 0)
at async /Users/dev/server/cartunesnext/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@graphql-codegen/cli/bin.js:1
010:37
at async Task.task (/Users/dev/server/cartunesnext/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@graphql-codegen/c
li/bin.js:789:17)
TypeError: visitFn.call is not a function
at Object.visit (/Users/dev/server/cartunesnext/node_modules/.pnpm/[email protected]/node_modules/graphql/language/visitor.js:200:21)
at Object.plugin (/Users/dev/server/cartunesnext/node_modules/.pnpm/@[email protected][email protected]/node_modules/@graphql-codegen/typescript/in
dex.js:367:35)
at executePlugin (/Users/dev/server/cartunesnext/node_modules/.pnpm/@[email protected][email protected]/node_modules/@graphql-codegen/core/index.js:38:35
)
at /Users/dev/server/cartunesnext/node_modules/.pnpm/@[email protected][email protected]/node_modules/@graphql-codegen/core/index.js:167:30
at Array.map ()
at Object.codegen (/Users/dev/server/cartunesnext/node_modules/.pnpm/@[email protected][email protected]/node_modules/@graphql-codegen/core/index.js:157:
54)
at async process (/Users/dev/server/cartunesnext/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@graphql-codegen/cli
/bin.js:1003:56)
at async Promise.all (index 0)
at async /Users/dev/server/cartunesnext/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@graphql-codegen/cli/bin.js:1
010:37
at async Task.task (/Users/dev/server/cartunesnext/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@graphql-codegen/c
li/bin.js:789:17)
Beta Was this translation helpful? Give feedback.
All reactions