Skip to content

Disable package exports in Metro bundler config - #533

Merged
mnindrazaka merged 1 commit into
mainfrom
claude/modest-gauss-0n0gme
Sep 17, 2026
Merged

mnindrazaka merged 1 commit into
mainfrom
claude/modest-gauss-0n0gme

Conversation

@mnindrazaka

Copy link
Copy Markdown
Collaborator

Disables the unstable package exports feature in Metro's resolver configuration for the kds-mobile app.

Summary

Added unstable_enablePackageExports: false to the Metro bundler resolver configuration to explicitly opt out of the unstable package exports feature.

Changes

  • Set unstable_enablePackageExports to false in apps/kds-mobile/metro.config.js resolver options

Details

This change ensures the Metro bundler does not use the unstable package exports resolution feature, maintaining compatibility with the current dependency resolution strategy and avoiding potential issues from experimental bundler behavior.

https://claude.ai/code/session_01NuhPT4LgSzW26LCyNMcw59

Expo SDK 51's default Metro config enables unstable_enablePackageExports,
which makes axios 1.7.7 resolve via its "default" export condition to the
Node.js build (dist/node/axios.cjs) instead of the browser/RN build, since
axios's exports map has no react-native condition. That Node build
requires('http'), which Metro cannot resolve in React Native, producing
"ERROR Cannot resolve http" on local start.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NuhPT4LgSzW26LCyNMcw59
@vercel

vercel Bot commented Sep 17, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
gatherloop-order Building Building Preview Sep 17, 2026 1:20pm UTC
gatherloop-pos Building Building Preview Sep 17, 2026 1:20pm UTC
gatherloop-ui-storybook Building Building Preview Sep 17, 2026 1:20pm UTC

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.

2 participants