question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find module 'graphql/tsutils/Maybe'

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
maticzavcommented, Nov 19, 2018

@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! 🙂

1reaction
jacobpgncommented, Nov 19, 2018

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

nestjs - Cannot find module 'graphql/tsutils/Maybe' or its ...
I found solution my graphql version dont matching with @types/graphql ... Seems that graphql/tsutils/Maybe.d.ts is removed with the graphql ...
Read more >
8.2 updates (!12) · Merge requests
build/node_modules/graphql/tsutils/Maybe.d.ts . ... build/node_modules/graphql/polyfills/find.js.flow . ... build/node_modules/ajv/lib/dot/missing.def .
Read more >
error: cannot find module 'graphql/language/parser' - You.com
This issue is comes when you use import gql from 'graphql-tag'.Honestly I don't know why graphql-tag not working in snack.expo.io, however it is...
Read more >
Open Source Used In Socio 1.0 - Cisco
This document contains licenses and notices for open source software used in this product.
Read more >
NOTICE.pdf - NetApp Cloud Central
This product does not necessarily use all the software components referred to ... @apollo-model/graphql 14.5 ... @babel/helper-module-trans forms 7.10.1.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found