Skip to content

fix(app): use process.cwd() in app.config for Node 26 ESM loading - #23

Merged
realcodesiman merged 1 commit into
mainfrom
fix/app-config-dirname
Nov 14, 2026
Merged

realcodesiman merged 1 commit into
mainfrom
fix/app-config-dirname

Conversation

@realcodesiman

Copy link
Copy Markdown
Contributor

Summary

  • Node 26 loads app.config.ts natively as an ES module, where __dirname is undefined, so expo config failed on the EAS build.
  • Use process.cwd() instead; Expo CLI and eas-cli evaluate the config with cwd at the project root.
  • import.meta.dirname was avoided because it breaks under Jest's CJS transform.

Test plan

  • npx expo config resolves locally
  • EAS build gets past the config read step
  • Jest suite passes

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@realcodesiman
realcodesiman merged commit 59dccb2 into main Nov 14, 2026
1 check passed
@realcodesiman
realcodesiman deleted the fix/app-config-dirname branch November 14, 2026 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant