DEV Community 👩‍💻👨‍💻

Discussion on: Tutorial: How to share code between iOS, Android & Web using React Native, react-native-web and monorepo

Collapse
shubhamsinha profile image
Shubham Sinha • Edited on
scripts: {
  "start": "node ../../node_modules/react-native/local-cli/cli.js start --projectRoot ../../"
}

throws error error: unknown option `--projectRoot'

On modifying --projectRoot to --projectRoots I get following error

Loading dependency graph...jest-haste-map: Watchman crawl failed. Retrying once with node crawler.

Collapse
brunolemos profile image
Bruno Lemos Author • Edited on

You mean when trying to use jest? If not please check the repository to see what you made differently.

Collapse
shubhamsinha profile image
Shubham Sinha

Sorry, I modified my comment. I am getting an error with --projectRoot. I was trying on my own repo. I'll be cloning your repo and then let you know if the problem persists.

Thread Thread
brunolemos profile image
Bruno Lemos Author

I'm using the unreleased react-native 0.59 in this tutorial, some dependencies got a major bump so maybe there are some differences if you are using an older version.

Collapse
asmakhalfallah2018 profile image
AsmaGithub

did you find an alternative for --projectRoot please ?