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

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.


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


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.

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.


did you find an alternative for --projectRoot please ?

code of conduct - report abuse