# Building Kibana code in WSL giving error

**URL:** <https://discuss.elastic.co/t/building-kibana-code-in-wsl-giving-error/349790>\
**Category:** Kibana\
**Created:** [December 21, 2023, 11:22am UTC](https://discuss.elastic.co/t/building-kibana-code-in-wsl-giving-error/349790 "2023-12-21T11:22:19Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikas.shirke](https://avatars.discourse-cdn.com/v4/letter/v/b5a626/32.png) [@vikas.shirke](https://discuss.elastic.co/u/vikas.shirke)\
**Post date:** [December 21, 2023, 11:22am UTC](https://discuss.elastic.co/t/building-kibana-code-in-wsl-giving-error/349790/1 "2023-12-21T11:22:19Z")

</div>

I am trying to build Kibana code locally in wsl enviroment. I am using version 8.11.3

I have ran below commands:  
git checkout 8.11.3  
nvm use  
yarn kbn clean  
yarn cache clean  
rm yarn.lock  
yarn kbn bootstrap --force-install  
yarn es snapshot --license trial --version 8.11.3  
yarn start --run-examples (In another window)

Elastic has started properly. But Kibana is throwing below errors on console.  
Please see screenshots below:

![image](https://us1.discourse-cdn.com/elastic/original/3X/7/9/79bd5fed7402adcc9af8070a47cc812f48a1f67c.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/4/e4bf0dbb24433fdce5af8bd7bf4a5943dfd38c0c.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/8/58bdbc1169ad4e5c0a42b62975264e273698725c.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/6/866b9022fe3201360a21bbef444f9387997cdab3.png)

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [December 27, 2023, 9:09pm UTC](https://discuss.elastic.co/t/building-kibana-code-in-wsl-giving-error/349790/2 "2023-12-27T21:09:28Z")

</div>

Could you please run `yarn kbn reset` or delete the node modules and run bootstrap again?  
Sometimes yarn kbn clean doesn't really clean up.

Thanks,  
Bhavya

---

<div class="post-metadata">

**Author:** ![vikas.shirke](https://avatars.discourse-cdn.com/v4/letter/v/b5a626/32.png) [@vikas.shirke](https://discuss.elastic.co/u/vikas.shirke)\
**Post date:** [January 10, 2024, 6:03am UTC](https://discuss.elastic.co/t/building-kibana-code-in-wsl-giving-error/349790/3 "2024-01-10T06:03:32Z")

</div>

Thank you for the reply. I will try this solution.

Sorry for the late response.

---

<div class="post-metadata">

**Author:** ![vikas.shirke](https://avatars.discourse-cdn.com/v4/letter/v/b5a626/32.png) [@vikas.shirke](https://discuss.elastic.co/u/vikas.shirke)\
**Post date:** [January 10, 2024, 7:32am UTC](https://discuss.elastic.co/t/building-kibana-code-in-wsl-giving-error/349790/4 "2024-01-10T07:32:49Z")

</div>

Tried yarn kbn reset command as you suggested but getting same error. ☹  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/e/1e8f512046e55e441c349838748d95d70e06bfb1.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/0/50135e7bc2b33a04a599caa3bf1d4b35fb4c1581.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/f/4f7c4f760988266bca119206cb948c8cfa9084ed.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/f/1fed8c33dafa86fdcff80b7bcab46b667387348f.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/f/9f2063878ed350c8a95b8156c78a36085de4e7a1.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/8/08dac8b6bed4ac77c4e97b380323ea72cfacc0e5.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/f/dfccb0c3c5212a7d338c5546be6f98b2fa6339c8.png)

**Any other suggestion?**

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [January 10, 2024, 2:58pm UTC](https://discuss.elastic.co/t/building-kibana-code-in-wsl-giving-error/349790/5 "2024-01-10T14:58:43Z")

</div>

@jbudz /@tiagocosta can this user get some help please?

Thanks,  
Bhavya

---

<div class="post-metadata">

**Author:** ![vikas.shirke](https://avatars.discourse-cdn.com/v4/letter/v/b5a626/32.png) [@vikas.shirke](https://discuss.elastic.co/u/vikas.shirke)\
**Post date:** [January 18, 2024, 6:29am UTC](https://discuss.elastic.co/t/building-kibana-code-in-wsl-giving-error/349790/6 "2024-01-18T06:29:43Z")

</div>

@jbudz / @tiagocosta : Any help or pointer will be useful as we are near the release of our application.

---

<div class="post-metadata">

**Author:** ![vikas.shirke](https://avatars.discourse-cdn.com/v4/letter/v/b5a626/32.png) [@vikas.shirke](https://discuss.elastic.co/u/vikas.shirke)\
**Post date:** [January 22, 2024, 8:50am UTC](https://discuss.elastic.co/t/building-kibana-code-in-wsl-giving-error/349790/7 "2024-01-22T08:50:34Z")

</div>

Any help or pointer will be useful as we are near the release of our application.

---

<div class="post-metadata">

**Author:** ![vikas.shirke](https://avatars.discourse-cdn.com/v4/letter/v/b5a626/32.png) [@vikas.shirke](https://discuss.elastic.co/u/vikas.shirke)\
**Post date:** [January 22, 2024, 1:24pm UTC](https://discuss.elastic.co/t/building-kibana-code-in-wsl-giving-error/349790/8 "2024-01-22T13:24:28Z")

</div>

Does it have to do with npm, yarn or bazel versions installed on wsl?

---

<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:** [February 19, 2024, 1:24pm UTC](https://discuss.elastic.co/t/building-kibana-code-in-wsl-giving-error/349790/9 "2024-02-19T13:24:39Z")

</div>

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