TypeError: Class constructor Application cannot be invoked without 'new' #2

Closed
opened 2019-01-09 14:37:41 +00:00 by Ghost · 0 comments

/Users/snowdream/workspace/startup/雪梦科技/bwg/index.js:33
var app = koa();
^

TypeError: Class constructor Application cannot be invoked without 'new'
at Object. (/Users/snowdream/workspace/startup/雪梦科技/bwg/index.js:33:11)
at Module._compile (internal/modules/cjs/loader.js:702:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
at Module.load (internal/modules/cjs/loader.js:612:32)
at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
at Function.Module._load (internal/modules/cjs/loader.js:543:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:744:10)
at startup (internal/bootstrap/node.js:238:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:572:3)

/Users/snowdream/workspace/startup/雪梦科技/bwg/index.js:33 var app = koa(); ^ TypeError: Class constructor Application cannot be invoked without 'new' at Object.<anonymous> (/Users/snowdream/workspace/startup/雪梦科技/bwg/index.js:33:11) at Module._compile (internal/modules/cjs/loader.js:702:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10) at Module.load (internal/modules/cjs/loader.js:612:32) at tryModuleLoad (internal/modules/cjs/loader.js:551:12) at Function.Module._load (internal/modules/cjs/loader.js:543:3) at Function.Module.runMain (internal/modules/cjs/loader.js:744:10) at startup (internal/bootstrap/node.js:238:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:572:3)
Ghost closed this issue 2019-01-15 11:48:15 +00:00
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coolaj86/greenlock-koa.js#2
No description provided.