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.

types.d.ts cannot find one of the imports

See original GitHub issue

after installing graphql-yoga and it’s deps, I get this error.

... /node_modules/graphql-yoga/dist/src/types.d.ts (7,37): Cannot find module 'graphql-subscriptions/dist/subscriptions-manager'.

I am using GraphQLServerLambda. This error also appears on your examples/lambda-typescript/ install. I checked the node_modules folder, and indeed there is no such module as graphql-subscriptions/dist/subscriptions-manager to be imported. It’s not breaking error, but annoying nonetheless 😃

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
huv1kcommented, Feb 23, 2018

I tested it right now and it works ❤️

2reactions
schicklingcommented, Feb 23, 2018

This should be fixed in 1.3.4. Please let us know if this is still a problem.

Thanks a lot @akoenig for digging into this. 🙏

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot find name xxx, while defined in @types/xxx.d.ts #1066
Expected Behavior No import error Actual Behavior vehicle.ts:1:41 - error TS2304: Cannot find name 'Vehicle'. while webpack compiles with no ...
Read more >
Typescript: .d.ts file not recognized - Stack Overflow
The application compiles fine. In the IDE, however, I get an error: ts2339: Property 'myCustomGlobal' does not exist on type 'Window'. I ......
Read more >
Documentation - Module Resolution - TypeScript
Module resolution is the process the compiler uses to figure out what an import refers to. Consider an import statement like import {...
Read more >
TypeScript errors and how to fix them
ts ' cannot be compiled under '–isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export...
Read more >
cannot find module or its corresponding type declarations
To solve the "Cannot find module `fs` or its corresponding type declarations" error, install the types for node by running the command `npm...
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