diff --git a/packages/core/src/tasks/taskFinder.ts b/packages/core/src/tasks/taskFinder.ts index 2b580f7ac..be960b341 100644 --- a/packages/core/src/tasks/taskFinder.ts +++ b/packages/core/src/tasks/taskFinder.ts @@ -47,7 +47,8 @@ export const extractSingleExecutableTask = async ( suitableTasks: RnvTask[], taskName: string ): Promise => { - if (suitableTasks.length === 1) { + const { platform } = getContext(); + if (suitableTasks.length === 1 && platform) { return suitableTasks[0]; } else if (suitableTasks.length === 0) { return undefined;