Skip to content

Commit

Permalink
fix: update metro manager path
Browse files Browse the repository at this point in the history
  • Loading branch information
rams23 committed Dec 22, 2023
1 parent 87fbf80 commit 94e0b89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cli/src/application/metroManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import { getDefaultUserTerminal, startServerInNewWindow } from '@react-native-co
export async function startMetro(resetCache = false, port = '8081') {
startServerInNewWindow(
Number(port),
getDefaultUserTerminal()!,
getProjectRootDir(),
path.join(getProjectRootDir(), 'node_modules/react-native'),
getDefaultUserTerminal()!,
);

while (!(await checkIsMetroRunning(port))) {
Expand Down

0 comments on commit 94e0b89

Please sign in to comment.