Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Logger is not a constructor #87

Open
kaihendry opened this issue Mar 3, 2020 · 0 comments
Open

TypeError: Logger is not a constructor #87

kaihendry opened this issue Mar 3, 2020 · 0 comments

Comments

@kaihendry
Copy link

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.<anonymous> (/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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant