Summary
Fresh projects scaffolded via pnpm create start-ui drop an openapi-ts-error-.log at the project root on the very first install. The generated src/lib/hey-api/generated is never produced.
Reproduction
pnpm create start-ui myApp
cd myApp
ls openapi-ts-error-*.log # exists
Log contents:
[2026-04-18T22:26:09.583Z] Error: Error opening file "/Users/azizbecha/myApp/undefined/api/openapi/app/schema"
ENOENT: no such file or directory, open '/Users/azizbecha/myApp/undefined/api/openapi/app/schema'
Stack:
ResolverError: Error opening file "/Users/azizbecha/myApp/undefined/api/openapi/app/schema"
ENOENT: no such file or directory, open '/Users/azizbecha/myApp/undefined/api/openapi/app/schema'
at Object.handler (file:///Users/azizbecha/myApp/node_modules/.pnpm/@hey-api+json-schema-ref-parser@1.3.1/node_modules/@hey-api/json-schema-ref-parser/dist/index.mjs:1438:9)
at async $RefParser.parse (file:///Users/azizbecha/myApp/node_modules/.pnpm/@hey-api+json-schema-ref-parser@1.3.1/node_modules/@hey-api/json-schema-ref-parser/dist/index.mjs:1700:5)
at async $RefParser.bundle (file:///Users/azizbecha/myApp/node_modules/.pnpm/@hey-api+json-schema-ref-parser@1.3.1/node_modules/@hey-api/json-schema-ref-parser/dist/index.mjs:1647:3)
at async createClient$1 (file:///Users/azizbecha/myApp/node_modules/.pnpm/@hey-api+openapi-ts@0.94.0_typescript@5.9.3/node_modules/@hey-api/openapi-ts/dist/src-1D7PrOtb.mjs:83:8)
at async file:///Users/azizbecha/myApp/node_modules/.pnpm/@hey-api+openapi-ts@0.94.0_typescript@5.9.3/node_modules/@hey-api/openapi-ts/dist/src-1D7PrOtb.mjs:186:12
at async Promise.all (index 0)
at async createClient (file:///Users/azizbecha/myApp/node_modules/.pnpm/@hey-api+openapi-ts@0.94.0_typescript@5.9.3/node_modules/@hey-api/openapi-ts/dist/src-1D7PrOtb.mjs:184:21)
at async Command.<anonymous> (file:///Users/azizbecha/myApp/node_modules/.pnpm/@hey-api+openapi-ts@0.94.0_typescript@5.9.3/node_modules/@hey-api/openapi-ts/dist/run.mjs:38:8)
at async Command.parseAsync (/Users/azizbecha/myApp/node_modules/.pnpm/commander@14.0.3/node_modules/commander/lib/command.js:1122:5)
at async runCli (file:///Users/azizbecha/myApp/node_modules/.pnpm/@hey-api+openapi-ts@0.94.0_typescript@5.9.3/node_modules/@hey-api/openapi-ts/dist/run.mjs:42:3)
Note the literal undefined in the path.

Root cause
The prepare hook fires during pnpm install, which runs automatically as part of the scaffold — before the user has a chance to cp .env.example .env (step 1 of the README's Installation section). So EXPO_PUBLIC_BASE_URL is unset.
Fix
I will consider opening a PR introducing a fix for this bug
Summary
Fresh projects scaffolded via pnpm create start-ui drop an openapi-ts-error-.log at the project root on the very first install. The generated src/lib/hey-api/generated is never produced.
Reproduction
Log contents:
Note the literal undefined in the path.

Root cause
The prepare hook fires during
pnpm install, which runs automatically as part of the scaffold — before the user has a chance tocp .env.example .env(step 1 of the README's Installation section). SoEXPO_PUBLIC_BASE_URLis unset.Fix
I will consider opening a PR introducing a fix for this bug