From fa7f427ee4050a285d8de9f859d9f31d385663cf Mon Sep 17 00:00:00 2001 From: Oskar Eichler <62393985+OskarEichler@users.noreply.github.com> Date: Fri, 28 Aug 2026 10:08:05 +0300 Subject: [PATCH] fix(tools): recognize running Metro instances at literal project paths --- packages/cli-tools/src/getNextPort.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/cli-tools/src/getNextPort.ts b/packages/cli-tools/src/getNextPort.ts index be4a5a4d0..374fe13c7 100644 --- a/packages/cli-tools/src/getNextPort.ts +++ b/packages/cli-tools/src/getNextPort.ts @@ -19,10 +19,7 @@ const getNextPort = async (port: number, root: string): Promise => { const isRunning = typeof result === 'object' && result.status === 'running'; - if ( - isRunning && - result.root === new URL(`file:///${root}`).pathname.slice(1) - ) { + if (isRunning && result.root === root) { // Found running bundler for this project, so we do not need to start packager! start = false; } else if (isRunning || result === 'unrecognized') {