A JavaScript error occurred in the main process

Resolved 💬 4 comments Opened Feb 4, 2026 by caichuanwang Closed Feb 4, 2026

What version of the Codex App are you using (From “About Codex” dialog)?

260203.1501 (523)

What subscription do you have?

no

What issue are you seeing?

when i open codex first time , the give a error, title is "A JavaScript error occurred in the main process" and content is "Uncaught Exception:
Error: ENOTDIR: not a directory, mkdir '/Users/myname/.codex/sqlite'
at Object.mkdirSync (node:fs:1349:26)
at Ct (/Applications/Codex.app/Contents/Resources/app.asar/.vite/build/main.js:37:2164)
at Object.<anonymous> (/Applications/Codex.app/Contents/Resources/app.asar/.vite/build/main.js:552:14481)
at Module._compile (node:internal/modules/cjs/loader:1769:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1902:10)
at Module.load (node:internal/modules/cjs/loader:1488:32)
at Module._load (node:internal/modules/cjs/loader:1307:12)
at c._load (node:electron/js2c/node_init:2:17999)
at node:electron/js2c/browser_init:2:139583
at node:electron/js2c/browser_init:2:139792"

I can not open codex now!!!

About my env:
Apple m1 Pro
16G
macOS version: 15.3.1

When i quit codex, a error alse show me ,the title is "A JavaScript error occurred in the main process" and the content is "Uncaught Exception:
ReferenceError: Cannot access 'zt' before initialization
at EventEmitter.<anonymous> (/Applications/Codex.app/Contents/Resources/app.asar/.vite/build/main.js:552:14195)
at EventEmitter.emit (node:events:520:35)
at o.emit (/Applications/Codex.app/Contents/Resources/app.asar/.vite/build/main.js:511:5950)"

What steps can reproduce the bug?

just opent it

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗