Skip to content

Metro Bundler Fails to Resolve Subpath Exports from platejs and @platejs/core in React Native/Expo #4458

Answered by guillempuche
guillempuche asked this question in Q&A
Discussion options

You must be logged in to vote

Adding unstable_enablePackageExports: true in metro.config.js (see Metro Bundler docs) successfully resolves the subpath export issue, allowing the platejs and @platejs/core libraries to load correctly in React Native/Expo applications. Recommendation from @TylorS 🙏.

Previously I had unstable_enablePackageExports: false because the Tamagui UI library caused problems in the past (tamagui/tamagui#3396 (comment)). I'll test it more to confirm that Tamagui and Plate works together.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by zbeyens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working core
1 participant
Converted from issue

This discussion was converted from issue #4457 on July 03, 2025 22:35.