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

已關閉
建立於 2019-01-09 14:37:41 +00:00 由 Ghost · 0 comment

/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 關閉了這個問題 2019-01-15 11:48:15 +00:00
登入 才能加入這對話。
未選擇標籤
1 參與者
通知
截止日期
未設定截止日期。
先決條件

未設定先決條件。

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