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 'koa'.

See original GitHub issue

When importing as mentioned in docs for an express project:

import { express as voyagerMiddleware } from 'graphql-voyager/middleware';

I get

 node_modules/graphql-voyager/middleware/koa.d.ts:1:25 - error TS2307: Cannot find module 'koa'.

 1 import { Context } from 'koa';

from typescript@2.9.2

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
eric-burelcommented, Jan 30, 2019

Guess who got the same issue

1reaction
SachaGcommented, Jan 4, 2019

Haha exact same issue for me! Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting koa to work (nodejs web framework)
To install it, run npm install koa in a terminal in your project folder. If you've run npm init and setup a package....
Read more >
Cannot find module 'koa' when running first program #1462
After installing koa with npm install koa -g in the windows command line, I tried to run my first koa program. const Koa...
Read more >
koa
Koa web app framework. Latest version: 2.14.1, last published: 19 days ago. Start using koa in your project by running `npm i koa`....
Read more >
Koa - next generation web framework for node.js
Koa is a new web framework designed by the team behind Express, which aims to be a smaller, more expressive, and more robust...
Read more >
【Koa】Error: Cannot find module 'koa-router'
【Koa】Error : Cannot find module 'koa-router',【Koa】Error:Cannotfindmodule'koa-router'报错如下解决办法执行以下命令安装koa-router即可解决此 ...
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