Error when build kibana 7.7 from source code

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

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

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 ?

Guess you are on windows
Try this thread that may help you

1 Like

Thank for your answer, I read that thread and do followed the instructions but it not working.

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