# Error when build kibana 7.7 from source code

**URL:** <https://discuss.elastic.co/t/error-when-build-kibana-7-7-from-source-code/263502>\
**Category:** Kibana\
**Created:** [February 6, 2021, 2:26pm UTC](https://discuss.elastic.co/t/error-when-build-kibana-7-7-from-source-code/263502 "2021-02-06T14:26:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thien\_Hoang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thien_hoang/32/80244_2.png) [@Thien\_Hoang](https://discuss.elastic.co/u/Thien_Hoang)\
**Post date:** [February 6, 2021, 2:26pm UTC](https://discuss.elastic.co/t/error-when-build-kibana-7-7-from-source-code/263502/1 "2021-02-06T14:26:32Z")

</div>

I get error about module 'static-extend' when build kibana from branch 7.7 version 7.7.2  
run `yarn kbn bootstrap`

```auto
F:\Project\kibana>yarn kbn bootstrap
yarn run v1.22.4
$ node scripts/kbn bootstrap
F:\Project\kibana\packages\kbn-pm\dist\index.js:91831
        throw e;
        ^

Error: Cannot find module 'static-extend'
    at webpackEmptyContext (F:\Project\kibana\packages\kbn-pm\dist\index.js:91829:10)
    at Function.getter [as staticExtend] (F:\Project\kibana\packages\kbn-pm\dist\index.js:91692:42)
    at Object.module.exports.cu.extend (F:\Project\kibana\packages\kbn-pm\dist\index.js:91598:16)
    at namespace (F:\Project\kibana\packages\kbn-pm\dist\index.js:89829:29)
    at Object.<anonymous> (F:\Project\kibana\packages\kbn-pm\dist\index.js:89921:18)
    at __webpack_require__ (F:\Project\kibana\packages\kbn-pm\dist\index.js:21:30)
    at Object.<anonymous> (F:\Project\kibana\packages\kbn-pm\dist\index.js:89314:12)
    at __webpack_require__ (F:\Project\kibana\packages\kbn-pm\dist\index.js:21:30)
    at Object.<anonymous> (F:\Project\kibana\packages\kbn-pm\dist\index.js:89204:18)
    at __webpack_require__ (F:\Project\kibana\packages\kbn-pm\dist\index.js:21:30)
error Command failed with exit code 1.

```

run `yarn build`

```auto
F:\Project\kibana>yarn build
yarn run v1.22.4
$ node scripts/build --all-platforms
F:\Project\kibana\packages\kbn-pm\dist\index.js:91831
        throw e;
        ^

Error: Cannot find module 'static-extend'
    at webpackEmptyContext (F:\Project\kibana\packages\kbn-pm\dist\index.js:91829:10)
    at Function.getter [as staticExtend] (F:\Project\kibana\packages\kbn-pm\dist\index.js:91692:42)
    at Object.module.exports.cu.extend (F:\Project\kibana\packages\kbn-pm\dist\index.js:91598:16)
    at namespace (F:\Project\kibana\packages\kbn-pm\dist\index.js:89829:29)
    at Object.<anonymous> (F:\Project\kibana\packages\kbn-pm\dist\index.js:89921:18)
    at __webpack_require__ (F:\Project\kibana\packages\kbn-pm\dist\index.js:21:30)
    at Object.<anonymous> (F:\Project\kibana\packages\kbn-pm\dist\index.js:89314:12)
    at __webpack_require__ (F:\Project\kibana\packages\kbn-pm\dist\index.js:21:30)
    at Object.<anonymous> (F:\Project\kibana\packages\kbn-pm\dist\index.js:89204:18)
    at __webpack_require__ (F:\Project\kibana\packages\kbn-pm\dist\index.js:21:30)
    at Object.<anonymous> (F:\Project\kibana\packages\kbn-pm\dist\index.js:83616:14)
    at __webpack_require__ (F:\Project\kibana\packages\kbn-pm\dist\index.js:21:30)
    at Object.<anonymous> (F:\Project\kibana\packages\kbn-pm\dist\index.js:82723:14)
    at __webpack_require__ (F:\Project\kibana\packages\kbn-pm\dist\index.js:21:30)
    at Object.<anonymous> (F:\Project\kibana\packages\kbn-pm\dist\index.js:82302:18)
    at __webpack_require__ (F:\Project\kibana\packages\kbn-pm\dist\index.js:21:30)
error Command failed with exit code 1.

```

Someone can help me ?

---

<div class="post-metadata">

**Author:** ![ylasri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ylasri/32/86120_2.png) [@ylasri](https://discuss.elastic.co/u/ylasri)\
**Post date:** [February 6, 2021, 10:30pm UTC](https://discuss.elastic.co/t/error-when-build-kibana-7-7-from-source-code/263502/2 "2021-02-06T22:30:03Z")

</div>

Guess you are on windows  
Try this [thread](https://discuss.elastic.co/t/error-while-building-package-from-source-code/188432/4) that may help you

---

<div class="post-metadata">

**Author:** ![Thien\_Hoang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thien_hoang/32/80244_2.png) [@Thien\_Hoang](https://discuss.elastic.co/u/Thien_Hoang)\
**Post date:** [February 6, 2021, 11:13pm UTC](https://discuss.elastic.co/t/error-when-build-kibana-7-7-from-source-code/263502/4 "2021-02-06T23:13:51Z")

</div>

Thank for your answer, I read that [thread](https://discuss.elastic.co/t/error-while-building-package-from-source-code/188432/4) and do followed the instructions but it not working.

---

<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:** [March 6, 2021, 11:14pm UTC](https://discuss.elastic.co/t/error-when-build-kibana-7-7-from-source-code/263502/5 "2021-03-06T23:14:38Z")

</div>

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