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
1. The issue provides a reproduction available on Github, Stackblitz or CodeSandbox
Make sure to fork this template and run yarn generate in the terminal.
Please make sure the GraphQL Tools package versions under package.json matches yours.
2. A failing test has been provided
3. A local solution has been provided
4. A pull request is pending review
Describe the bug
Running graphql-codegen gives:
@graphql-tools/graphql-tag-pluck/node_modules/@babel/template/lib/index.js:53
throw new Error("You must pass a scope and parentPath unless traversing a Program/File. " + `Instead of that you tried to traverse a ${parent.type} node without ` + "passing scope and parentPath.");
To Reproduce Steps to reproduce the behavior:
I am using the following dependencies in my package json
Thank you for following up. The resolution for this issue involved deleting a few node_modules directories within various workspaces inside the project. After that, re-running the command resolved the problem.
Minimal reproduction is a bit involved in my case and the issue has been resolved.
Let me know if you would like me to post it any case, feel free to close the issue otherwise
Issue workflow progress
Progress of the issue based on the
Contributor Workflow
Describe the bug
Running
graphql-codegen
gives:To Reproduce Steps to reproduce the behavior:
I am using the following dependencies in my package json
Whenever I am using the
graphql-codegen
, it started to output the above error. It was not happening beforeExpected behavior
I am not familiar with the inner working, but I believe the step is needed to generate the typescript definitions starting from the graphql schema
Environment:
@graphql-tools/...
: see aboveThe text was updated successfully, but these errors were encountered: