# \[Windows Issue\] Custom Kibana App Plugin Crashes

**URL:** <https://discuss.elastic.co/t/windows-issue-custom-kibana-app-plugin-crashes/98780>\
**Category:** Kibana\
**Created:** [August 30, 2017, 4:07am UTC](https://discuss.elastic.co/t/windows-issue-custom-kibana-app-plugin-crashes/98780 "2017-08-30T04:07:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![varundbest](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/varundbest/32/48066_2.png) [@varundbest](https://discuss.elastic.co/u/varundbest)\
**Post date:** [August 30, 2017, 4:07am UTC](https://discuss.elastic.co/t/windows-issue-custom-kibana-app-plugin-crashes/98780/1 "2017-08-30T04:07:04Z")

</div>

Kibana Version :- 5.4.1 & 5.4.3  
Windows 7  
So I've created a repo to demo this issue :- [https://github.com/varundbest/kibanaPlugins/tree/master/test\_app](https://github.com/varundbest/kibanaPlugins/tree/master/test_app)  
I built a kibana app plugin and it works fine on Linux but on windows i get error upon going to my plugin in browser :-

> Kibana did not load properly. Check the server output for more information.

Console :-

> test\_app:196 GET [http://localhost:5601/bundles/test\_app.style.css?v=15104](http://localhost:5601/bundles/test_app.style.css?v=15104)  
> Failed to load resource: the server responded with a status of 404 (Not Found)  
> VM476:1 Uncaught SyntaxError: Unexpected token u in JSON at position 0  
> at JSON.parse ()  
> at getState (commons.bundle.js?v=15104:49)  
> at Object. (commons.bundle.js?v=15104:49)  
> at **webpack\_require** (commons.bundle.js?v=15104:1)  
> at Object. (commons.bundle.js?v=15104:1)  
> at **webpack\_require** (commons.bundle.js?v=15104:1)  
> at Object.0 (test\_app.bundle.js?v=15104:1)  
> at **webpack\_require** (commons.bundle.js?v=15104:1)  
> at window.webpackJsonp (commons.bundle.js?v=15104:1)  
> at test\_app.bundle.js?v=15104:1

There is no error in kibana server logs.

**Edit :-**  
Turns out it is a bug in Kibana, Created an issue on github for it :-

> <https://github.com/elastic/kibana/issues/13773>
>
> Kibana Version :- 5.4.1 & 5.4.3
> OS :- Windows 7
> So I've created a repo to demo… this issue :- https://github.com/varundbest/kibanaPlugins/tree/master/test\_app
> I built a kibana app plugin and it works fine on Linux but on windows i get error upon going to my plugin in browser :-
> 
> \> Kibana did not load properly. Check the server output for more information.
> 
> Console :-
> 
> \> test\_app:196 GET http://localhost:5601/bundles/test\_app.style.css?v=15104
> \> Failed to load resource: the server responded with a status of 404 (Not Found)
> \> VM476:1 Uncaught SyntaxError: Unexpected token u in JSON at position 0
> \> at JSON.parse (\<anonymous\>)
> \> at getState (commons.bundle.js?v=15104:49)
> \> at Object.\<anonymous\> (commons.bundle.js?v=15104:49)
> \> at \_\_webpack\_require\_\_ (commons.bundle.js?v=15104:1)
> \> at Object.\<anonymous\> (commons.bundle.js?v=15104:1)
> \> at \_\_webpack\_require\_\_ (commons.bundle.js?v=15104:1)
> \> at Object.0 (test\_app.bundle.js?v=15104:1)
> \> at \_\_webpack\_require\_\_ (commons.bundle.js?v=15104:1)
> \> at window.webpackJsonp (commons.bundle.js?v=15104:1)
> \> at test\_app.bundle.js?v=15104:1
> 
> There is no error in kibana server logs.
> 
> \*\*Fix to Bypass it :-\*\* 
> Create and import any .less stylesheet.
> https://github.com/varundbest/kibanaPlugins/commit/a38fdf2fed313323c59de292e845fb4cd9b6d1bc

---

<div class="post-metadata">

**Author:** ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)\
**Post date:** [August 30, 2017, 3:26pm UTC](https://discuss.elastic.co/t/windows-issue-custom-kibana-app-plugin-crashes/98780/2 "2017-08-30T15:26:37Z")

</div>

Thanks for creating the issue. 👍

---

<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:** [September 27, 2017, 3:26pm UTC](https://discuss.elastic.co/t/windows-issue-custom-kibana-app-plugin-crashes/98780/3 "2017-09-27T15:26:44Z")

</div>

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