Kibana7.5.1 yarn kbn bootstrap failed

hi,
when I try to build kibana-7.5.1 source code, it failed

my yarn and node version is:
image

the error message is:

Installs completed, linking package executables:

[kbn_tp_embeddable_explorer] plugin-helpers -> ../../../../packages/kbn-plugin-helpers/bin/plugin-helpers.js
[kbn_tp_sample_panel_action] plugin-helpers -> ../../../../packages/kbn-plugin-helpers/bin/plugin-helpers.js
[x-pack] plugin-helpers -> ../packages/kbn-plugin-helpers/bin/plugin-helpers.js

Linking executables completed, running `kbn:bootstrap` scripts

@elastic/datemath: $ yarn build --quiet
@kbn/elastic-idx: $ yarn build
@kbn/config-schema: $ yarn build
@kbn/utility-types: $ tsc
@elastic/datemath: $ babel src --out-dir target --copy-files --quiet
@kbn/elastic-idx: $ tsc
@kbn/config-schema: $ tsc
@kbn/dev-utils: $ yarn build
@kbn/dev-utils: $ tsc
@kbn/dev-utils: src/proc_runner/proc.ts(103,7): error TS2345: Argument of type 'MonoTypeOperatorFunction<unknown>' is not assignable to parameter of type 'OperatorFunction<unknown, [number]>'.
@kbn/dev-utils:   Type 'Observable<unknown>' is not assignable to type 'Observable<[number]>'.
@kbn/dev-utils:     Type 'unknown' is not assignable to type '[number]'.
@kbn/dev-utils: src/proc_runner/proc.ts(122,10): error TS2345: Argument of type 'MonoTypeOperatorFunction<number | null>' is not assignable to parameter of type 'OperatorFunction<unknown, number | null>'.
@kbn/dev-utils:   Types of parameters 'source' and 'source' are incompatible.
@kbn/dev-utils:     Type 'Observable<unknown>' is not assignable to type 'Observable<number | null>'.
@kbn/dev-utils:       Type 'unknown' is not assignable to type 'number | null'.
@kbn/dev-utils:         Type 'unknown' is not assignable to type 'number'.
@kbn/dev-utils: src/proc_runner/proc.ts(144,47): error TS2554: Expected 1 arguments, but got 2.
@kbn/dev-utils: src/proc_runner/proc.ts(152,47): error TS2554: Expected 1 arguments, but got 2.
@kbn/dev-utils: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
✖ @kbn/dev-utils: error Command failed with exit code 2.
@kbn/dev-utils: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
✖ @kbn/dev-utils: error Command failed with exit code 2.

[bootstrap] failed:

Error: Command failed: yarn run kbn:bootstrap
error Command failed with exit code 2.
error Command failed with exit code 2.

$ yarn build
$ tsc
src/proc_runner/proc.ts(103,7): error TS2345: Argument of type 'MonoTypeOperatorFunction<unknown>' is not assignable to parameter of type 'OperatorFunction<unknown, [number]>'.
  Type 'Observable<unknown>' is not assignable to type 'Observable<[number]>'.
    Type 'unknown' is not assignable to type '[number]'.
src/proc_runner/proc.ts(122,10): error TS2345: Argument of type 'MonoTypeOperatorFunction<number | null>' is not assignable to parameter of type 'OperatorFunction<unknown, number | null>'.
  Types of parameters 'source' and 'source' are incompatible.
    Type 'Observable<unknown>' is not assignable to type 'Observable<number | null>'.
      Type 'unknown' is not assignable to type 'number | null'.
        Type 'unknown' is not assignable to type 'number'.
src/proc_runner/proc.ts(144,47): error TS2554: Expected 1 arguments, but got 2.
src/proc_runner/proc.ts(152,47): error TS2554: Expected 1 arguments, but got 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

    at makeError (/data/kibana-7.5.1/packages/kbn-pm/dist/index.js:19328:9)
    at Promise.all.then.arr (/data/kibana-7.5.1/packages/kbn-pm/dist/index.js:19432:16)
    at process._tickCallback (internal/process/next_tick.js:68:7)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

how can I fix it? thanks!

Hello,

So our workflow - if you are trying to develop a plugin or something - starts with master which is 8.0.0 for the current version.

Not sure why you are getting that error. Can you make sure to run yarn kbn clean and then bootstrap?

Thanks,
Bhavya

Thanks for your replay :smile:
I hava solved it by running it on other machine, It seems to be caused by some environmental problems .

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