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

Crashing with Hapi 17 and Good 8 #3

Open
frankthelen opened this issue Jan 10, 2018 · 0 comments
Open

Crashing with Hapi 17 and Good 8 #3

frankthelen opened this issue Jan 10, 2018 · 0 comments

Comments

@frankthelen
Copy link

I am trying good-json-console in conjunction with Hapi 17.2.0 and Good 8.0.0-rc1.

My Good configuration looks like this:

{
    reporters: {
      stdout: [{
        module: 'good-json-console',
      }, 'stdout'],
    },
  }

It's crashing with this error:

{ AssertionError [ERR_ASSERTION]: Error in stdout. good-json-console must create a stream that has a pipe function.
    at internals.forOwn (.../node_modules/good/lib/monitor.js:106:22)
    at Object.internals.forOwn (.../node_modules/good/lib/monitor.js:183:9)
    at Monitor.start (.../node_modules/good/lib/monitor.js:77:19)
    at Object.exports.register (.../node_modules/good/lib/index.js:41:13)
    at internals.Server.register (.../node_modules/hapi/lib/server.js:419:35)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
    at Function.Module.runMain (module.js:686:11)
    at startup (bootstrap_node.js:187:16)
    at bootstrap_node.js:608:3
  generatedMessage: false,
  name: 'AssertionError [ERR_ASSERTION]',
  code: 'ERR_ASSERTION',
  actual: false,
  expected: true,
  operator: '==' }

Am I doing something wrong?

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