Skip to content

fix(metro-resolver-symlinks): don't ignore errors when using oxc-resolver#4185

Merged
tido64 merged 2 commits into
mainfrom
tido/oxc-resolver/ignored-errors
Jun 4, 2026
Merged

fix(metro-resolver-symlinks): don't ignore errors when using oxc-resolver#4185
tido64 merged 2 commits into
mainfrom
tido/oxc-resolver/ignored-errors

Conversation

@tido64

@tido64 tido64 commented Jun 3, 2026

Copy link
Copy Markdown
Member

Description

As opposed to enhanced-resolver, oxc-resolver does not throw whenever it hits an error. Instead, it returns an error field that we have to handle ourselves.

Test plan

info Note: Oxc Resolver support is still experimental
info Bundling win32...
                Welcome to Metro v0.83.7
              Fast - Scalable - Integrated


/Users/tido/Source/fluentui-react-native/node_modules/.store/@rnx-kit-metro-resolver-symlinks-virtual-25deb31b78/package/lib/resolvers/oxc-resolver.js:42
    throw new Error(`${origin}: ${error}`);
          ^

Error: ../../packages/components/Avatar/src/useAvatar.ts: "./grapheme" is not exported under the condition "react-native" from package /~/packages/components/Avatar/node_modules/unicode-segmenter (see exports field in /~/packages/components/Avatar/node_modules/unicode-segmenter/package.json)
    at applyOxcResolver (/~/node_modules/.store/@rnx-kit-metro-resolver-symlinks-virtual-25deb31b78/package/lib/resolvers/oxc-resolver.js:42:11)
    ...

@github-actions github-actions Bot added the feature: metro This is related to Metro label Jun 3, 2026
@tido64 tido64 merged commit 6c590d1 into main Jun 4, 2026
15 checks passed
@tido64 tido64 deleted the tido/oxc-resolver/ignored-errors branch June 4, 2026 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature: metro This is related to Metro

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants