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.

Support the new koa router package

See original GitHub issue

koa-router package has been renamed to @koa/router. However, using the latter fails with:

koa-router package was not found installed. Try to install it

The issue is, because routing-controllers uses the old import: https://github.com/Keyj1n/routing-controllers/blob/master/src/driver/koa/KoaDriver.ts#L394 I think this logic should be refactored to simply allow passing a custom koa-router instance to routing-controllers. What do you think?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
NoNameProvidedcommented, Aug 9, 2020

Koa is being deprecated and will be removed.

0reactions
github-actions[bot]commented, Dec 11, 2020

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

koa-router - npm
Router middleware for koa. Maintained by Forward Email and Lad.. Latest version: 12.0.0, last published: 5 months ago.
Read more >
ZijianHe/koa-router: Router middleware for koa. - GitHub
Express-style routing using app.get , app.put , app.post , etc. Named URL parameters. Named routes with URL generation. Responds to OPTIONS requests with ......
Read more >
Koa JS Router Example using koa-router package
In this post, we will look at a basic Koa JS Router Example using the koa-router package. If you are totally new to...
Read more >
@koa/router - npm Package Health Analysis | Snyk
Router middleware for koa. Maintained by Forward Email and Lad. For more information about how to use this package see README. Latest version...
Read more >
Install koa-router with NPM
View koa-router source code on Github. ... koa-router package install ... The API has changed to match the new promise-based middleware signature of...
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