# ERROR unexcepted token in Kibana Dev Contributing

**URL:** <https://discuss.elastic.co/t/error-unexcepted-token-in-kibana-dev-contributing/125533>\
**Category:** Kibana\
**Created:** [March 26, 2018, 3:33am UTC](https://discuss.elastic.co/t/error-unexcepted-token-in-kibana-dev-contributing/125533 "2018-03-26T03:33:19Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luan\_Ha\_Thanh](https://avatars.discourse-cdn.com/v4/letter/l/848f3c/32.png) [@Luan\_Ha\_Thanh](https://discuss.elastic.co/u/Luan_Ha_Thanh)\
**Post date:** [March 26, 2018, 3:33am UTC](https://discuss.elastic.co/t/error-unexcepted-token-in-kibana-dev-contributing/125533/1 "2018-03-26T03:33:19Z")

</div>

Hello everyone!  
I want to build a plugin in Kibana. So I followed guide in think: [https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md)

But when I run:  
yarn start

It has more errors, example:

```
ERROR in ./node_modules/@kbn/ui-framework/src/components/panel_simple/panel_simple.js
Module parse failed: D:\ELK Test\kibana\kibana\node_modules\@kbn\ui-framework\src\components\panel_simple\panel_simple.js Unexpected token (21:2)
You may need an appropriate loader to handle this file type.
| grow,
| panelRef,
| ...rest
| }) => {
|

```

May be someone can help me.  
Thank you very much!!!

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [March 26, 2018, 3:56am UTC](https://discuss.elastic.co/t/error-unexcepted-token-in-kibana-dev-contributing/125533/2 "2018-03-26T03:56:22Z")

</div>

> [@Luan\_Ha\_Thanh](#):
>
> You may need an appropriate loader

Can you please check if node\_modules are up-to-date? You may need an appropriate loader to handle this. Try re-installing node\_modules and see if this error re-occurs.

Cheers  
Rashmi

---

<div class="post-metadata">

**Author:** ![Luan\_Ha\_Thanh](https://avatars.discourse-cdn.com/v4/letter/l/848f3c/32.png) [@Luan\_Ha\_Thanh](https://discuss.elastic.co/u/Luan_Ha_Thanh)\
**Post date:** [March 26, 2018, 4:01am UTC](https://discuss.elastic.co/t/error-unexcepted-token-in-kibana-dev-contributing/125533/3 "2018-03-26T04:01:52Z")

</div>

So I run this command:  
yarn kbn bootstrap

The current state is: Bootstrapping completed!  
Can I run kibana contributing offline ?

---

<div class="post-metadata">

**Author:** ![Luan\_Ha\_Thanh](https://avatars.discourse-cdn.com/v4/letter/l/848f3c/32.png) [@Luan\_Ha\_Thanh](https://discuss.elastic.co/u/Luan_Ha_Thanh)\
**Post date:** [March 26, 2018, 4:04am UTC](https://discuss.elastic.co/t/error-unexcepted-token-in-kibana-dev-contributing/125533/4 "2018-03-26T04:04:23Z")

</div>

I can't get all node\_modules because proxy. So I created a kibana repository that has all node\_modules in my home. I think it can run.

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [March 26, 2018, 4:05am UTC](https://discuss.elastic.co/t/error-unexcepted-token-in-kibana-dev-contributing/125533/5 "2018-03-26T04:05:30Z")

</div>

Yes Now you can start the development server.

`yarn start`

Now you can point your web browser to [https://localhost:5601](https://localhost:5601) and start using Kibana! When running yarn start, Kibana will also log that it is listening on port 5603 due to the base path proxy, but you should still access Kibana on port 5601.

Good luck!  
Rashmi

---

<div class="post-metadata">

**Author:** ![Luan\_Ha\_Thanh](https://avatars.discourse-cdn.com/v4/letter/l/848f3c/32.png) [@Luan\_Ha\_Thanh](https://discuss.elastic.co/u/Luan_Ha_Thanh)\
**Post date:** [March 26, 2018, 4:25am UTC](https://discuss.elastic.co/t/error-unexcepted-token-in-kibana-dev-contributing/125533/6 "2018-03-26T04:25:06Z")

</div>

But I still can't run Kibana dev. When Kibana was loading in Chrome, error in my screen: 'Kibana did not load properly. Check the server output for more information.'. And in terminal:  
ERROR in ./node\_modules/@kbn/ui-framework/src/components/tool\_bar/tool\_bar\_footer.js  
Module parse failed: D:\ELK Test\kibana\kibana\node\_modules@kbn\ui-framework\src\components\too  
l\_bar\tool\_bar\_footer.js Unexpected token (5:56)  
You may need an appropriate loader to handle this file type.  
| import classNames from 'classnames';  
|  
| export const KuiToolBarFooter = ({ children, className, ...rest }) =\> {  
| const classes = classNames('kuiToolBarFooter', className);  
| return \<div className={classes} {...rest}\>{children};

```
ERROR in ./node_modules/@kbn/ui-framework/src/components/tool_bar/tool_bar_footer_section.js
Module parse failed: D:\ELK Test\kibana\kibana\node_modules\@kbn\ui-framework\src\components\too

```

l\_bar\tool\_bar\_footer\_section.js Unexpected token (5:63)  
You may need an appropriate loader to handle this file type.  
| import classNames from 'classnames';  
|  
| export const KuiToolBarFooterSection = ({ children, className, ...rest }) =\> {  
| const classes = classNames('kuiToolBarFooterSection', className);  
| return \<div className={classes} {...rest} \>{children};

Thank you very much!!!

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [March 26, 2018, 4:42am UTC](https://discuss.elastic.co/t/error-unexcepted-token-in-kibana-dev-contributing/125533/7 "2018-03-26T04:42:51Z")

</div>

> [@Luan\_Ha\_Thanh](#):
>
> r\tool\_bar\_footer.js Unexpected token (5:56)

I would suggest taking a second look at your Node\_modules dir . The problem exists there. You would have to update it and retry. Try it, else I will ping any internal dev tomorrow to look at your issue if the problem still persists.

Cheers  
Rashmi

---

<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:** [April 23, 2018, 4:43am UTC](https://discuss.elastic.co/t/error-unexcepted-token-in-kibana-dev-contributing/125533/8 "2018-04-23T04:43:12Z")

</div>

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