Coder Social home page Coder Social logo

Comments (7)

brentvatne avatar brentvatne commented on April 20, 2024 1

@hramos - it seems that on some machines it's needed :\ if we're unable to start the packager due to fs event notif limits we do provide specific instructions for how to get it work without watchman and also link to watchman -- https://github.com/react-community/create-react-native-app/blob/882f1d23766b827429b2b1fbfd4afc513796a652/react-native-scripts/src/util/packager.js#L77-L116

the bet we're making here is that people will have less problems not installing watchman and following the error message than they will if they try to install watchman (which people often have problems with this on Windows/Linux). neither solution is perfect. ideally we'd bundle something like watchman (perhaps even watchman itself) in CRNA and scope it so it doesn't deal with any global system state

from react-native-website.

anp avatar anp commented on April 20, 2024 1

This should probably be tracked somewhere else (metro maybe?) but it would be very nice to either replace watchman with a non-global per-process watcher, or to bundle watchman as platform specific npm packages and use its --state-dir and --foreground flags to isolate it to a specific packager instance. This would get people more accurate file watching without needing to install it separately from CRNA and without the global state debugging dance that usually comes with watchman's default configuration.

from react-native-website.

hramos avatar hramos commented on April 20, 2024

There's several permutations depending on the platform you're developing on and the platform you're targeting. Can you tell us more about which version of the guide you followed? Watchman is mentioned in the iOS and macOS version of the guide, for example.

from react-native-website.

hramos avatar hramos commented on April 20, 2024

Sorry - you're following the Quick Start it seems. Watchman should not be required by CRNA unless something changed recently. Can you tell us more about what did not work?

from react-native-website.

brentvatne avatar brentvatne commented on April 20, 2024

cc @dikaiosune

from react-native-website.

814k31 avatar 814k31 commented on April 20, 2024

Yeah I tried to run it on my mac book air (I think its like an 09 or something)
I'll uninstall watchman a bit later and get the error message back if you need however I found the error was caused by not having watchman on my machine which worked fine after installing it

In regards to watchman being purposely left out of the docs, feel free to close this issue.
I just thought I'd create it incase you weren't aware of the error message

from react-native-website.

ecreeth avatar ecreeth commented on April 20, 2024

@814k31 you can close this issue, watchman is already mentioned!

from react-native-website.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.