From 1707d30025f07c203d4615072c218bd7aae04ab4 Mon Sep 17 00:00:00 2001 From: Samuel Susla Date: Tue, 24 Feb 2026 09:39:47 -0800 Subject: [PATCH] stop standalone Devtools from starting in Fantom (#55713) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/55713 changelog: [internal] when running Fantom on Mac, I frequently see this error. This is DevTools standalone app crashing. Let's disable DevTools standalone app, it is not needed with tests anyway. {F1985865132} Reviewed By: huntie Differential Revision: D94092247 fbshipit-source-id: 440e4482102b2f4152eb63c04023b01867250213 --- .../react-native-fantom/runner/global-setup/globalSetup.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/private/react-native-fantom/runner/global-setup/globalSetup.js b/private/react-native-fantom/runner/global-setup/globalSetup.js index d357d839ad5..bb9993a3176 100644 --- a/private/react-native-fantom/runner/global-setup/globalSetup.js +++ b/private/react-native-fantom/runner/global-setup/globalSetup.js @@ -53,6 +53,11 @@ async function startMetroServer() { websocketEndpoints: debuggerWebsocketEndpoints, } = createDevMiddleware({ serverBaseUrl: `http://localhost:${metroConfig.server.port}`, + // Disable standalone DevTools shell preparation to avoid launching the + // Electron app during tests. This prevents crashes. + unstable_experiments: { + enableStandaloneFuseboxShell: false, + }, }); const enhanceMiddleware: ConfigT['server']['enhanceMiddleware'] = (