This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Description
Describe the bug
Uncaught TypeError exception after kubectl kui if kui window is already open
Steps to reproduce the behavior
- Install
kui with brew install kui
- Open terminal and run
kubectl kui
- kui window opens
- Run
kubectl kui in the terminal again
- See error
A JavaScript error occurred in the main process
Uncaught Exception:
TypeError: Cannot read properties of null (reading 'env')
at App.<anonymous> (/Applications/Kui.app/Contents/Resources/app/dist/headless/7255.kui.min.js:1:15573)
at App.emit (node:events:513:28)
Expected behavior
Focus goes to the open kui window and result of the command is shown there
Screenshots
Window with the error

Code snippets
Not applicable
System
- Kui version: v13.1.3
- Operating system: macOS Ventura 13.3.1 (22E261)