apex / apex/up-examples

TypeError: Logger is not a constructor

Open
#87 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
391
Forks
44
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.