You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
All imports are undefined in new metro config (react-native 0.72 and higher) #1544
After upgrading from React Native 0.71 to 0.73, applications using module path aliases in Metro config crash with TypeError: Cannot read property 'rootReducer' of undefined when importing modules via configured aliases.
Steps to Reproduce
Set up RN 0.73 project with Metro alias configuration:
App should start normally and import modules correctly via configured aliases.
Actual Behavior
App crashes with error:
TypeError: Cannot read property 'rootReducer' of undefined
Environment
React Native: 0.73.11
Metro: 0.73.5
Platform: Android/iOS
Previous working version: RN 0.71
Additional Context
The issue appears to be related to changes in Metro's module resolution in RN 0.73. The same configuration works fine in RN 0.71. Module imports using relative paths work correctly, only alias-based imports fail.
Reproduction
Minimal reproduction case attached in the linked repository.
In my case, it was not a metro issue.
Some libraries (firebase etc.,) required modification of the native code, but I didn't, and I don't know what cause this was, but all the imports didn't work as normal.
After modifying the native code as suggested by the library, the import started working normally.
In my case, it was not a metro issue. Some libraries (firebase etc.,) required modification of the native code, but I didn't, and I don't know what cause this was, but all the imports didn't work as normal. After modifying the native code as suggested by the library, the import started working normally.
Did you make any progress with this @LueKedowsky ? Same problem with a move from 72 to 73 (yes 73 is out of support, but I'm handcuffed by what the business prioritises me spending my time on, and RN upgrades get pushed back in favour of new features 😵 )
Also curious if @nemorize is able to expand more. Interesting that missing native changes could cause this
Activity
nemorize commentedon Oct 8, 2025
same here.any updates?robhogan commentedon Oct 8, 2025
RN 0.73 is a long time out of support, folks - 0.82 was out today. Does anyone have a repro on a recent version?
nemorize commentedon Oct 9, 2025
In my case, it was not a metro issue.
Some libraries (firebase etc.,) required modification of the native code, but I didn't, and I don't know what cause this was, but all the imports didn't work as normal.
After modifying the native code as suggested by the library, the import started working normally.
LueKedowsky commentedon Oct 14, 2025
@nemorize , Can you give an example?
LueKedowsky commentedon Oct 14, 2025
@robhogan same errors on v81
VirtualDOMinic commentedon Jan 7, 2026
Did you make any progress with this @LueKedowsky ? Same problem with a move from 72 to 73 (yes 73 is out of support, but I'm handcuffed by what the business prioritises me spending my time on, and RN upgrades get pushed back in favour of new features 😵 )
Also curious if @nemorize is able to expand more. Interesting that missing native changes could cause this