Kibana 7.3 Yarn Build Failed

Hi

I downloaded 7.3 kibana source code from github and attempted to build it. I was trying in SUSE box

  1. First I ran "Yarn kbn bootstrap", it became succesfull
  2. yarn build --skip-os-packages failed with below error

nfo [ kibana ] Running optimizer
│ debg Temporarily installing node.js for linux-x64
│ info Running bin/kibana to trigger the optimizer
│ debg $ ./bin/kibana --env.name=production --logging.json=false --optimize
│ERROR failure
│ERROR TypeError: Cannot read property 'on' of undefined
│ at destroyer (internal/streams/pipeline.js:27:10)
│ at internal/streams/pipeline.js:79:12
│ at Array.map ()
│ at pipeline (internal/streams/pipeline.js:76:28)
│ at streams (../Kibana_latest/src/legacy/utils/streams/promise_from_streams.js:59:17)
│ at new Promise ()
│ at createPromiseFromStreams (.../Kibana_latest/src/legacy/utils/streams/promise_from_streams.js:58:10)
│ at watchStdioForLine (../Kibana_latest/src/legacy/utils/watch_stdio_for_line.js:66:5)
│ at exec (/.../Kibana_latest/src/dev/build/lib/exec.js:41:9)
│ at Object.run (../Kibana_latest/src/dev/build/tasks/optimize_task.js:47:11)
│ at process._tickCallback (internal/process/next_tick.js:68:7)

Hmm, could you try running yarn kbn clean && yarn kbn bootstrap first and see if that fixes it?

Nope still same error.

info [ kibana ] Running optimizer
│ debg Temporarily installing node.js for linux-x64
│ info Running bin/kibana to trigger the optimizer
│ debg $ ./bin/kibana --env.name=production --logging.json=false --optimize
│ERROR failure
│ERROR TypeError: Cannot read property 'on' of undefined

Can you please provide an update???

I have tried even 7.4 , but facing same issue

info [ kibana ] Running optimizer
│ debg Temporarily installing node.js for linux-x64
│ info Running bin/kibana to trigger the optimizer
│ debg $ ./bin/kibana --env.name=production --logging.json=false --optimize
│ERROR failure
│ERROR TypeError: Cannot read property 'on' of undefined
│ at destroyer (internal/streams/pipeline.js:27:10)
│ at internal/streams/pipeline.js:79:12
│ at Array.map ()
│ at pipeline (internal/streams/pipeline.js:76:28)
│ at streams (Kibana_latest/src/legacy/utils/streams/promise_from_streams.js:59:17)
│ at new Promise ()
│ at createPromiseFromStreams (Kibana_latest/src/legacy/utils/streams/promise_from_streams.js:58:10)
│ at watchStdioForLine

can someone please reply??

I saw few others also facing same issue https://github.com/elastic/kibana/issues/46880

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.