Skip to content

Conversation

@tido64
Copy link
Member

@tido64 tido64 commented Nov 17, 2025

Description

Fixed crash when react-native-web is installed

Test plan

Add react-native-web:

diff --git a/packages/test-app/package.json b/packages/test-app/package.json
index 8c67682fa..c1b704db8 100644
--- a/packages/test-app/package.json
+++ b/packages/test-app/package.json
@@ -39,7 +39,8 @@
   "dependencies": {
     "@react-native-webapis/web-storage": "workspace:*",
     "react": "19.1.0",
-    "react-native": "^0.81.0"
+    "react-native": "^0.81.0",
+    "react-native-web": "^0.21.2"
   },
   "devDependencies": {
     "@babel/core": "^7.20.0",

Install and verify that Metro doesn't crash on startup:

yarn
yarn build-scope @rnx-kit/test-app
cd packages/test-app/
node --print 'require("./metro.config.js")'

@github-actions github-actions bot added the feature: metro This is related to Metro label Nov 17, 2025
@tido64 tido64 force-pushed the tido/metro-config/web-crash branch from 69796ab to c21d60f Compare November 17, 2025 14:06
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