From c10998dba1253da0a0ae6775dbc67f3e27899252 Mon Sep 17 00:00:00 2001 From: Eric McWilliams Date: Thu, 13 Apr 2017 10:13:10 -0700 Subject: [PATCH] needs to new koa const for koa v 2 to work I was just reading through your tutorial in the Google App Engine kao intro and ran into Koa v2 requiring the "new" statement. Just wanted to give you the info to help out on the documentation. This doesn't look like the same code as in the example but maybe the message will reach you and I can sleep tonight knowing I helped fix something today :D --- appengine/koa/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/appengine/koa/app.js b/appengine/koa/app.js index 3a3340ee2a..aed5efc5ad 100644 --- a/appengine/koa/app.js +++ b/appengine/koa/app.js @@ -17,6 +17,7 @@ // [START server] const app = require('koa')(); +const app = new koa(); app.use(function * () { this.body = 'Hello World! Koa.js on Google App Engine.';