Skip to content

projectRoot not working as expected #246

@brunolemos

Description

@brunolemos

Environment

  React Native Environment Info:
    System:
      OS: macOS 10.14.3
      CPU: (4) x64 Intel(R) Core(TM) i5-6267U CPU @ 2.90GHz
      Memory: 18.46 MB / 8.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 11.11.0 - /usr/local/bin/node
      Yarn: 1.15.2 - /usr/local/bin/yarn
      npm: 6.9.0 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
    IDEs:
      Android Studio: 3.3 AI-182.5107.16.33.5314842
      Xcode: 10.1/10B61 - /usr/bin/xcodebuild

I have the latest @react-native-community/cli 2.x installed globally and react-native 0.59 in the project.

Description

Cannot run react-native run-android ... from the monorepo root.

For iOS it works: react-native run-ios --project-path packages/mobile/ios

Reproducible Demo

react-native run-android --projectRoot packages/mobile/android

error Android project not found. Are you sure this is a React Native project?

Project: https://github.com/brunolemos/react-native-web-monorepo

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions