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.

Update to support Koa 3 version

See original GitHub issue

For example, Exercise 1 still tells you to use app = koa() instead of the class-based notation (app = new Koa()). And once you change this, koa tells you that generators are now deprecated and will be removed:

PS D:\koa-test1> node server
koa deprecated Support for generators will be removed in v3. See the documentation for examples of how to convert old middleware https://github.com/koajs/koa/blob/mas
ter/docs/migration.md server.js:6:5

I don’t know when v3 comes out, but it seems this repo is already out of date for the current version, so it makes sense to go straight to v3.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:3
  • Comments:5

github_iconTop GitHub Comments

1reaction
kenlyoncommented, May 6, 2019

I was about to log something similar when I saw you already did so… two years ago! I think it’d be great if the examples used the newer syntax of ``async (ctx, next) => { }withawait next()` rather than generator functions.

Not holding my breath, though. Doesn’t look like there’s much activity on this project. Otherwise, it was very helpful for getting up and running with Koa, mind you!

0reactions
nightlyherbcommented, Dec 14, 2021

While waiting for this to get published to npm, one could try installing from git as a workaround: npm install git+https://github.com/koajs/kick-off-koa (N.B. I installed kick-off-koa in a local directory and used npx kick-off-koa for running it, I don’t think that’s relevant here but just in case)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Koa - next generation web framework for node.js
Koa is a new web framework designed by the team behind Express, ... You can quickly install a supported version of node with...
Read more >
koa - npm
Koa web app framework. Latest version: 2.14.1, last published: 6 days ago. Start using koa in your project by running `npm i koa`....
Read more >
2.5. Open edX Koa Release — Installing, Configuring, and ...
The recommended approach to upgrading an existing installation of the Open edX Juniper release to the Koa release is to make a fresh...
Read more >
3 Kinds of KOAs for Every Way You Want To Camp
KOA Resort campgrounds offer a carefree vacation in the great outdoors with plenty of patio RV sites and Deluxe Cabins with linen service....
Read more >
Upgrading Koa to Nutmeg: why don't courses appear?
I'm working on a platform upgrade from Koa to Nutmeg. ... Koa Native has most courses (except 3 which are still at version...
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