apex / apex/up-examples

TypeError: Logger is not a constructor

Đang mở
#87 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
HTML
Star
391
Fork
44
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I deployed:
https://github.com/apex/up-examples/tree/master/oss/node-logging-2

And it fails:

```
Mar 3rd 01:43:51pm INFO staging 12ddf2e initializing
Mar 3rd 01:43:52pm ERRO staging 12ddf2e /var/task/app.js:6
Mar 3rd 01:43:52pm ERRO staging 12ddf2e const log = new Logger
Mar 3rd 01:43:52pm ERRO staging 12ddf2e ^
Mar 3rd 01:43:52pm ERRO staging 12ddf2e
Mar 3rd 01:43:52pm ERRO staging 12ddf2e TypeError: Logger is not a constructor
Mar 3rd 01:43:52pm ERRO staging 12ddf2e at Object. (/var/task/app.js:6:13)
Mar 3rd 01:43:52pm ERRO staging 12ddf2e at Module._compile (internal/modules/cjs/loader.js:778:30)
Mar 3rd 01:43:52pm ERRO staging 12ddf2e at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
Mar 3rd 01:43:52pm ERRO staging 12ddf2e at Module.load (internal/modules/cjs/loader.js:653:32)
Mar 3rd 01:43:52pm ERRO staging 12ddf2e at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
Mar 3rd 01:43:52pm ERRO staging 12ddf2e at Function.Module._load (internal/modules/cjs/loader.js:585:3)
Mar 3rd 01:43:52pm ERRO staging 12ddf2e at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
Mar 3rd 01:43:52pm ERRO staging 12ddf2e at startup (internal/bootstrap/node.js:283:19)
Mar 3rd 01:43:52pm ERRO staging 12ddf2e at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
Mar 3rd 01:44:06pm FATA staging 12ddf2e error creating handler: waiting for http://127.0.0.1:41811 to be in listening state: timed out after 15s: name=logging-test type=server
```

Sorry, I don't code in nodejs very often, so please excuse me.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.