Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flow was not found when attempting to start Atom/Nuclide

I am working on react-native application for which I am using Atom IDE. I am getting an error on opening Atom

enter image description here

I installed babel-cli and babel-preset-flow with npm command.

npm install --save-dev babel-cli babel-preset-flow

Now when I restart Atom then it shows same warning to me "Flow was not found when attempting to start". Can anyone help me how to fix it.

I have followed this https://medium.com/react-native-training/getting-started-with-react-native-and-flow-d40f55746809 flow server is working well but how I add flow to atom so I can get rid from this https://i.stack.imgur.com/7jJVI.png

like image 971
N Sharma Avatar asked Apr 14 '17 07:04

N Sharma


1 Answers

If the error itself is your concern, and you don't want to use Flow or don't even know what it does:

Nuclide -> Settings -> Flow and uncheck: Warn when Flow is not found

If, however, you want to use Flow:

Make sure you've got flow installed. Since flow will have to be matched with the version specified in .flowconfig it's a good idea to install it locally rather than globally.

For example, if your .flowconfig says:

[version]
^0.40.0

Install that very version of flow-bin locally, i.e:

npm install --save-dev [email protected]

Then Nuclide -> Settings -> Flow and check: Use the Flow binary included in each project's flow-bin

In case of issues, check flow issues.

like image 62
designorant Avatar answered Oct 19 '22 20:10

designorant