yarn run v1.22.22
$ kea-typegen check
馃 Kea-TypeGen v3.0.0
馃 TypeScript Config: /Users/bryanhoulton/Desktop/Projects/orin/portal/tsconfig.json
/Users/bryanhoulton/Desktop/Projects/orin/portal/node_modules/yargs/build/index.cjs:2772
throw err;
^
TypeError: Cannot read properties of undefined (reading 'kind')
at Object.isObjectLiteralExpression (/Users/bryanhoulton/Desktop/Projects/orin/portal/node_modules/typescript/lib/typescript.js:29395:21)
at visit (/Users/bryanhoulton/Desktop/Projects/orin/portal/node_modules/kea-typegen/dist/src/visit/visit.js:68:16)
at visitNode (/Users/bryanhoulton/Desktop/Projects/orin/portal/node_modules/typescript/lib/typescript.js:31205:24)
at forEachChildInCallOrNewExpression (/Users/bryanhoulton/Desktop/Projects/orin/portal/node_modules/typescript/lib/typescript.js:31914:16)
at Object.forEachChild (/Users/bryanhoulton/Desktop/Projects/orin/portal/node_modules/typescript/lib/typescript.js:31988:47)
at visit (/Users/bryanhoulton/Desktop/Projects/orin/portal/node_modules/kea-typegen/dist/src/visit/visit.js:64:16)
at visitNode (/Users/bryanhoulton/Desktop/Projects/orin/portal/node_modules/typescript/lib/typescript.js:31205:24)
at forEachChildInExpressionStatement (/Users/bryanhoulton/Desktop/Projects/orin/portal/node_modules/typescript/lib/typescript.js:31585:20)
at Object.forEachChild (/Users/bryanhoulton/Desktop/Projects/orin/portal/node_modules/typescript/lib/typescript.js:31988:47)
at visit (/Users/bryanhoulton/Desktop/Projects/orin/portal/node_modules/kea-typegen/dist/src/visit/visit.js:64:16)
Node.js v23.11.0
error Command failed with exit code 1.
{
"compilerOptions": {
"target": "ES2020",
"useDefineForClassFields": true,
"lib": ["DOM", "DOM.Iterable", "ES2020"],
"allowJs": false,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "ESNext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"types": ["node"]
},
"include": ["src", "vite.config.ts"]
}
{
"name": "portal",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev:app": "vite",
"dev:kea": "kea-typegen watch src --write-paths",
"check:kea": "kea-typegen check",
"dev": "concurrently \"yarn dev:app\" \"yarn dev:kea\" -n APP,KEA -c blue,green",
"build": "tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview",
"start": "vite"
},
"dependencies": {
"@google-cloud/local-auth": "^3.0.1",
"@livekit/components-react": "^2.9.4",
"@livekit/components-styles": "^1.1.5",
"@paper-design/shaders-react": "^0.0.30",
"colord": "^2.9.3",
"dedent": "^1.6.0",
"desmos-react": "^1.2.0",
"github-markdown-css": "^5.8.1",
"google-auth-library": "^10.1.0",
"install": "^0.13.0",
"kea": "^3.1.6",
"livekit-client": "^2.13.0",
"livekit-server-sdk": "^2.13.0",
"lucide-react": "^0.511.0",
"motion": "^12.23.6",
"openapi-fetch": "^0.14.0",
"openapi-typescript": "^7.8.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-markdown": "^10.1.0",
"react-router-dom": "^7.6.0",
"rehype-katex": "^7.0.1",
"rehype-raw": "^7.0.0",
"rehype-stringify": "^10.0.1",
"remark": "^15.0.1",
"remark-breaks": "^4.0.0",
"remark-gfm": "^4.0.1",
"remark-math": "^6.0.0",
"remark-parse": "^11.0.0",
"slate-ui": "^1.1.40",
"sonner": "^2.0.6",
"unist-util-visit": "^5.0.0",
"unist-util-visit-parents": "^6.0.1",
"use-sound": "^5.0.0",
"usehooks-ts": "^3.1.1"
},
"devDependencies": {
"@eslint/js": "^9.25.0",
"@tailwindcss/postcss": "^4.1.7",
"@tailwindcss/vite": "^4.1.11",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.3.0",
"@testing-library/user-event": "^14.6.1",
"@types/node": "^24.0.14",
"@types/react": "^19.1.2",
"@types/react-dom": "^19.1.2",
"@vitejs/plugin-react": "^4.4.1",
"autoprefixer": "^10.4.21",
"concurrently": "^9.2.0",
"eslint": "^9.25.0",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.19",
"globals": "^16.0.0",
"jsdom": "^26.1.0",
"kea-typegen": "3.0.0",
"postcss": "^8.5.3",
"tailwindcss": "^4.1.11",
"typescript": "4.9.5",
"typescript-eslint": "^8.30.1",
"vite": "^6.3.5",
"vitest": "^3.1.3"
}
}
Have used Kea extensively before in other projects with no issues. Have cleared caches for yarn, removed node_modules, etc.
Bug description (include screenshots or a GIF screencast)
Any kea command fails with this error:
Here's the tsconfig.json
and package.json
Have used Kea extensively before in other projects with no issues. Have cleared caches for yarn, removed node_modules, etc.