# Kibana plugin build error

**URL:** <https://discuss.elastic.co/t/kibana-plugin-build-error/153852>\
**Category:** Kibana\
**Created:** [October 24, 2018, 4:48pm UTC](https://discuss.elastic.co/t/kibana-plugin-build-error/153852 "2018-10-24T16:48:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![undwood](https://avatars.discourse-cdn.com/v4/letter/u/a88e57/32.png) [@undwood](https://discuss.elastic.co/u/undwood)\
**Post date:** [October 24, 2018, 4:48pm UTC](https://discuss.elastic.co/t/kibana-plugin-build-error/153852/1 "2018-10-24T16:48:10Z")

</div>

Hello.  
We are developing some kibana plugins, and for today after yarn kbn bootstrap getting error while building the plugin for any version of kibana. BUT in dev environment everything is okay: yarn start will start the kibana server with installed plugin.  
Error: (Path prefix is covered by /\*\*\*/ 🙂 )  
yarn build  
yarn run v1.10.1  
warning package.json: No license field  
$ plugin-helpers build  
? What version of Kibana are you building for? 6.4.2  
Task "build" failed:

TypeError: pna.nextTick is not a function  
at GlobStream.Readable.on (/\*\*\*/kibana/63/kibana/packages/kbn-plugin-helpers/node\_modules/readable-stream/lib/\_stream\_readable.js:752:13)  
at OrderedStreams.addStream (/\*\*\*/kibana/63/kibana/packages/kbn-plugin-helpers/node\_modules/ordered-read-streams/index.js:33:10)  
at /\*\*\*/kibana/63/kibana/packages/kbn-plugin-helpers/node\_modules/ordered-read-streams/index.js:91:7  
at Array.forEach ()  
at new OrderedStreams (/\*\*\*/kibana/63/kibana/packages/kbn-plugin-helpers/node\_modules/ordered-read-streams/index.js:87:11)  
at globStream (/\*\*\*/kibana/63/kibana/packages/kbn-plugin-helpers/node\_modules/glob-stream/index.js:70:19)  
at Object.src (/\*\*\*/kibana/63/kibana/packages/kbn-plugin-helpers/node\_modules/vinyl-fs/lib/src/index.js:24:5)  
at /\*\*\*/kibana/63/kibana/packages/kbn-plugin-helpers/tasks/build/create\_build.js:76:12  
at new Promise ()  
at /\*\*\*/kibana/63/kibana/packages/kbn-plugin-helpers/tasks/build/create\_build.js:74:14  
error Command failed with exit code 1.  
info Visit [https://yarnpkg.com/en/docs/cli/run](https://yarnpkg.com/en/docs/cli/run) for documentation about this command.

How do you think, what can it be or what to look for resolving the problem?

---

<div class="post-metadata">

**Author:** ![undwood](https://avatars.discourse-cdn.com/v4/letter/u/a88e57/32.png) [@undwood](https://discuss.elastic.co/u/undwood)\
**Post date:** [October 25, 2018, 6:27am UTC](https://discuss.elastic.co/t/kibana-plugin-build-error/153852/2 "2018-10-25T06:27:18Z")

</div>

I've solved the problem. I don't know what is be, but solution is very easy:

> yarn kbn clean  
> yarn kbm bootstrap  
> Moreover, I want to say that there is one more problem. When I add some external npm dependecies, I get broken project for build. Solution is the same - clean&bootstrap again.

---

<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 22, 2018, 6:27am UTC](https://discuss.elastic.co/t/kibana-plugin-build-error/153852/3 "2018-11-22T06:27:20Z")

</div>

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