Skip to content

fix(expo): set projectRoot to workspaceRoot for Expo SDK 54+ compatibility#33836

Merged
Coly010 merged 1 commit intomasterfrom
expo-metro
Dec 12, 2025
Merged

fix(expo): set projectRoot to workspaceRoot for Expo SDK 54+ compatibility#33836
Coly010 merged 1 commit intomasterfrom
expo-metro

Conversation

@Coly010
Copy link
Copy Markdown
Contributor

@Coly010 Coly010 commented Dec 12, 2025

Expo CLI 54.0.12+ changed how originModulePath is determined in Metro
resolvers - from workspace root to project root. This caused the Nx
custom resolver to double-path modules when resolving workspace libraries.

This fix:

  • Adds projectRoot: workspaceRoot to the Metro config to ensure
    originModulePath remains workspace-relative
  • Adds defensive path normalization in pnpmResolver to handle edge cases

Fixes #33597

@Coly010 Coly010 requested a review from a team as a code owner December 12, 2025 12:08
@Coly010 Coly010 requested a review from jaysoo December 12, 2025 12:08
@vercel
Copy link
Copy Markdown

vercel Bot commented Dec 12, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
nx-dev Ready Ready Preview Dec 12, 2025 2:08pm

@Coly010 Coly010 self-assigned this Dec 12, 2025
@netlify
Copy link
Copy Markdown

netlify Bot commented Dec 12, 2025

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit 8f7dfd1
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/693c206b3d22730008d088ae
😎 Deploy Preview https://deploy-preview-33836--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented Dec 12, 2025

View your CI Pipeline Execution ↗ for commit 8f7dfd1

Command Status Duration Result
nx affected --targets=lint,test,test-kt,build,e... ✅ Succeeded 18m 31s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 2m 22s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 12s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗
nx affected -t e2e-macos-local --parallel=1 --b... ✅ Succeeded 26m 10s View ↗

☁️ Nx Cloud last updated this comment at 2025-12-12 14:43:18 UTC

…ility

Expo CLI 54.0.12+ changed how originModulePath is determined in Metro
resolvers - from workspace root to project root. This caused the Nx
custom resolver to double-path modules when resolving workspace libraries.

This fix:
- Adds projectRoot: workspaceRoot to the Metro config to ensure
  originModulePath remains workspace-relative
- Adds defensive path normalization in pnpmResolver to handle edge cases

Fixes #33597
@Coly010 Coly010 merged commit cf742e7 into master Dec 12, 2025
21 checks passed
@Coly010 Coly010 deleted the expo-metro branch December 12, 2025 16:04
FrozenPandaz pushed a commit that referenced this pull request Dec 15, 2025
…ility (#33836)

Expo CLI 54.0.12+ changed how originModulePath is determined in Metro
resolvers - from workspace root to project root. This caused the Nx
custom resolver to double-path modules when resolving workspace
libraries.

This fix:
- Adds projectRoot: workspaceRoot to the Metro config to ensure
  originModulePath remains workspace-relative
- Adds defensive path normalization in pnpmResolver to handle edge cases

Fixes #33597
@github-actions
Copy link
Copy Markdown
Contributor

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Dec 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@nx/expo - Latest expo/cli breaks tasks

2 participants