# \[SOLVED\] X-Pack 6.2 install Fatal Error: ace.require is not a function

**URL:** <https://discuss.elastic.co/t/solved-x-pack-6-2-install-fatal-error-ace-require-is-not-a-function/127890>\
**Category:** Elasticsearch\
**Created:** [April 13, 2018, 2:50am UTC](https://discuss.elastic.co/t/solved-x-pack-6-2-install-fatal-error-ace-require-is-not-a-function/127890 "2018-04-13T02:50:20Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![clay.greenway](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@clay.greenway](https://discuss.elastic.co/u/clay.greenway)\
**Post date:** [April 16, 2018, 5:19pm UTC](https://discuss.elastic.co/t/solved-x-pack-6-2-install-fatal-error-ace-require-is-not-a-function/127890/4 "2018-04-16T17:19:55Z")

</div>

Encountering the same issue. Found two other discussions on the topic that seem to have stalled:

> [@Kibana 6.1.0. and newer starts with error](https://discuss.elastic.co/t/kibana-6-1-0-and-newer-starts-with-error/111754):
>
> I've upgrade ES 6.0.0 to 6.1.0. The second step was to upgrade Kibana. When I start Kibana I get this error. TypeError: \_reactcss.handleHover is not a function (http://\_SERVER\_:5601/bundles/kibana.bundle.js?v=16337:67) Additional data: Version: 6.1.0 Build: 16337 Error: TypeError: \_reactcss.handleHover is not a function (http://\_SERVER\_:5601/bundles/kibana.bundle.js?v=16337:67) [2134]/window.onerror@http://\_SERVER\_:5601/bundles/commons.bundle.js?v=16337:45:8728 Tried in IE 11 version 11.0.…

> [@6.2.0 starts with error](https://discuss.elastic.co/t/6-2-0-starts-with-error/118706):
>
> Hi The bug that was present in Kibana 6.1.x is also present in 6.2.0 , albeit in a slightly different way,. This time it is present like this Oops! Looks like something went wrong. Refreshing may do the trick. Go back Clear your session Fatal Error Uncaught TypeError: ace.require is not a function ([http://localhost:5601/bundles/kibana.bundle.js?v=16562:1](http://localhost:5601/bundles/kibana.bundle.js?v=16562:1)) Version: 6.2.0 Build: 16562 Error: Uncaught TypeError: ace.require is not a function ([http://localhost:5601/bundles/kibana.bundle.…](http://localhost:5601/bundles/kibana.bundle.js?v=16562:1)

In each discussion, including this one, I believe there are key facts missing to reproduce the issue.

1. For consistency, we are talking about installing/running on Windows.
2. It seems that in each case "installation" of kibana was actually just download and extract the zip file
3. Probably most importantly, we are missing the current directory from which the kibana was executed (the first time, and each subsequent time).

For me, the process was as follows:

1. Download and extract kibana 6.2.3 zip file to a safe location (no spaces in path)
2. Change directory to `bin` folder
3. Run `kibana.bat`
4. Kibana launches, works fine
5. Later, shut down kibana
6. Still in `bin` folder, run `kibana-plugin install x-pack`
7. After installation and config complete, run kibana again with `kibana.bat`
8. Got the error mentioned in the OP, but, I almost immediately realized my error of executing `kibana-plugin` from the bin folder (a `x-pack` folder was created inside bin!)
9. So I did a `kibana-plugin remove x-pack`. Folders got cleaned up.
10. Change directory to kibana root, remove `optimize` folder
11. Run `bin\kibana.bat`
12. From this point forward, no combination of workarounds suggested in the other two discussions help; I always get the "Uncaught TypeError".

I really suspect the key to reproducing the problem has to do with using the windows command prompt shell, and the path from which kibana is executed for the very first time.

---

_[View the full topic](https://discuss.elastic.co/t/solved-x-pack-6-2-install-fatal-error-ace-require-is-not-a-function/127890)._
