Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module 'graphql/tsutils/Maybe' #176

Closed
carstenbaumhoegger opened this issue Nov 17, 2018 · 5 comments
Closed

Cannot find module 'graphql/tsutils/Maybe' #176

carstenbaumhoegger opened this issue Nov 17, 2018 · 5 comments

Comments

@carstenbaumhoegger
Copy link

carstenbaumhoegger commented Nov 17, 2018

I updated grapql-binding to v2.3.1 and this error appears.
The changelog says, that there was an upgrade to graphql@14, but I can't figure out, what I've got to do to fix this error.

ERROR in node_modules/graphql-binding/dist/codegen/FlowGenerator.d.ts(3,19): error TS2307: Cannot find module 'graphql/tsutils/Maybe'.

The graphql-dependency of my project is at v 14.0.2.

Thanks in advance
Carsten

@maticzav
Copy link
Collaborator

Hey 👋,

Thank you for reporting this. Could you put together a short reproduction example? It can be either Github repo or Codesandbox, or anything that suits you better 🙂

@jacobpgn
Copy link

Hey there! I'm seeing this too – tiny repro at https://github.com/jacobpgn/graphql-binding-176, the tsc build is what's blowing up.

@schickling
Copy link
Contributor

🎉 This issue has been resolved in version 2.3.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@maticzav
Copy link
Collaborator

@jacobpgn thank you for reproduction; I was able to find the issue in no time! The problem emerged due to missing @types/graphql in your project.

I internalised Maybe type to prevent such issue from happening. Let me know if you still experience the bug! 🙂

@carstenbaumhoegger
Copy link
Author

@jacobpgn
Thanks for providing a repro-repo!

@maticzav
Thanks for fixing the bug this fast!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants