# Yarn kbn bootstrap fails， A few TS errors occurred！

**URL:** <https://discuss.elastic.co/t/yarn-kbn-bootstrap-fails-a-few-ts-errors-occurred/287767>\
**Category:** Kibana\
**Tags:** windows\
**Created:** [October 27, 2021, 7:43am UTC](https://discuss.elastic.co/t/yarn-kbn-bootstrap-fails-a-few-ts-errors-occurred/287767 "2021-10-27T07:43:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nuaazt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nuaazt/32/96392_2.png) [@nuaazt](https://discuss.elastic.co/u/nuaazt)\
**Post date:** [October 27, 2021, 7:43am UTC](https://discuss.elastic.co/t/yarn-kbn-bootstrap-fails-a-few-ts-errors-occurred/287767/1 "2021-10-27T07:43:03Z")

</div>

hi， I pull the code from the github (tag 7.14.0) and then build kibana on windows 10.

[Getting started | Kibana Guide [7.15] | Elastic](https://www.elastic.co/guide/en/kibana/current/development-getting-started.html),

my os is windows10 ， git bash

but got errors at the step: 'yarn kbn bootstrap'  
info [bazel] ERROR: \*\*/packages/kbn-legacy-logging/BUILD.bazel:58:11: Compiling TypeScript project //packages/kbn-legacy-logging:tsc [tsc -p packages/kbn-legacy-logging/tsconfig.json] failed: (Exit 2): tsc.bat failed: error executing command bazel-out/host/bin/external/npm/typescript/bin/tsc.bat --pretty --project packages/kbn-legacy-logging/tsconfig.json --outDir bazel-out/

---

<div class="post-metadata">

**Author:** ![Marco\_Liberati](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marco_liberati/32/82953_2.png) [@Marco\_Liberati](https://discuss.elastic.co/u/Marco_Liberati)\
**Post date:** [October 27, 2021, 12:07pm UTC](https://discuss.elastic.co/t/yarn-kbn-bootstrap-fails-a-few-ts-errors-occurred/287767/2 "2021-10-27T12:07:18Z")

</div>

Hi @nuaazt

welcome to the Kibana community.

I see that the typescript compiler is failing but maybe there's something more that helps the debugging.

Could you enable the verbose mode and paste here the results of the execution?

```auto
yarn kbn bootstrap --verbose

```

that may be helpful to better understand the problem.

---

<div class="post-metadata">

**Author:** ![nuaazt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nuaazt/32/96392_2.png) [@nuaazt](https://discuss.elastic.co/u/nuaazt)\
**Post date:** [October 28, 2021, 1:35am UTC](https://discuss.elastic.co/t/yarn-kbn-bootstrap-fails-a-few-ts-errors-occurred/287767/3 "2021-10-28T01:35:18Z")

</div>

it turns out:  
info [bazel\_tools] installing Bazel tools  
and bazel@4.0.0ls] bazelisk is not installed. Installing @bazel/bazelisk@1.7.5  
succ [bazel\_tools] all bazel tools are correctly installed  
info [bazel] Starting local Bazel server and connecting to it...  
info [bazel] INFO: Invocation ID: 807805c7-7ad8-4e3d-bf53-2b56cb4936c3  
info [bazel] INFO: Analyzed target //packages:build (1943 packages loaded, 75968 targets configured).  
info [bazel] INFO: Found 1 target...  
info [bazel] ERROR: E:/my\_code/kibana/packages/kbn-dev-utils/BUILD.bazel:93:11: Compiling TypeScript project //packages/kbn-dev-utils:tsc [tsc -p packages/kbn-dev-utils/tsconfig.json] failed: (Exit 2): tsc.bat failed: error executing command bazel-out/host/bin/external/npm/typescript/bin/tsc.bat --pretty --project packages/kbn-dev-utils/tsconfig.json --outDir bazel-out/x64\_windows-fastbuild/bin/packages/kbn-dev-utils/target --rootDir ... (remaining 6 argument(s) skipped)  
info [bazel] packages/kbn-dev-utils/src/stdio/observe\_lines.ts:46:22 - error TS2345: Argument of type 'string' is not assignable to parameter of type 'never'.  
info [bazel]  
info [bazel] 46 lines.push(buffer.slice(0, match.index));  
info [bazel] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
info [bazel]  
info [bazel]  
info [bazel] Found 1 error.  
info [bazel]  
info [bazel] Target //packages:build failed to build  
info [bazel] Use --verbose\_failures to see the command lines of failed build steps.  
info [bazel] ERROR: E:/my\_code/kibana/packages/elastic-eslint-config-kibana/BUILD.bazel:43:8 Assembling npm package packages/elastic-eslint-config-kibana/npm\_module failed: (Exit 2): tsc.bat failed: error executing command bazel-out/host/bin/external/npm/typescript/bin/tsc.bat --pretty --project packages/kbn-dev-utils/tsconfig.json --outDir bazel-out/x64\_windows-fastbuild/bin/packages/kbn-dev-utils/target --rootDir ... (remaining 6 argument(s) skipped)  
info [bazel] INFO: Elapsed time: 124.045s, Critical Path: 35.98s  
info [bazel] INFO: 11 processes: 7 internal, 4 local.  
info [bazel]  
debg KIBANA\_CI\_STATS\_CONFIG environment variable not found, disabling CiStatsReporter  
ERROR [bootstrap] failed:  
ERROR The bazel command that was running failed to complete.  
error Command failed with exit code 1.  
info Visit [yarn run | Yarn](https://yarnpkg.com/en/docs/cli/run) for documentation about this command.

---

<div class="post-metadata">

**Author:** ![rudolf](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rudolf/32/51200_2.png) [@rudolf](https://discuss.elastic.co/u/rudolf)\
**Post date:** [November 2, 2021, 1:58pm UTC](https://discuss.elastic.co/t/yarn-kbn-bootstrap-fails-a-few-ts-errors-occurred/287767/4 "2021-11-02T13:58:25Z")

</div>

You'll need to use Linux or Mac to develop Kibana plugins.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 30, 2021, 1:58pm UTC](https://discuss.elastic.co/t/yarn-kbn-bootstrap-fails-a-few-ts-errors-occurred/287767/5 "2021-11-30T13:58:52Z")

</div>

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