Encountering the same issue. Found two other discussions on the topic that seem to have stalled:
In each discussion, including this one, I believe there are key facts missing to reproduce the issue.
- For consistency, we are talking about installing/running on Windows.
- It seems that in each case "installation" of kibana was actually just download and extract the zip file
- 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:
- Download and extract kibana 6.2.3 zip file to a safe location (no spaces in path)
- Change directory to
bin
folder - Run
kibana.bat
- Kibana launches, works fine
- Later, shut down kibana
- Still in
bin
folder, runkibana-plugin install x-pack
- After installation and config complete, run kibana again with
kibana.bat
- Got the error mentioned in the OP, but, I almost immediately realized my error of executing
kibana-plugin
from the bin folder (ax-pack
folder was created inside bin!) - So I did a
kibana-plugin remove x-pack
. Folders got cleaned up. - Change directory to kibana root, remove
optimize
folder - Run
bin\kibana.bat
- 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.