-
Notifications
You must be signed in to change notification settings - Fork 24.7k
Running flow
inside a brand new project fails
#784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
We are going to provide a flowconfig with sample app soon. cc @sahrens |
HI @jergason - so the problem is that For now, the workaround is to copy the
That should get you to 0 errors using Flow 0.8.0. |
Im still having issues getting flow to run without errors. After I
|
The default .flowconfig file isn't correct. See #784 (comment) for an explanation of how to get it running. |
Here is the .flowconfig that react-native generated which matches the comments above:
|
Bump. Same issue. Using Flow 0.10.0 |
uh, wow, I fixed it...? [libs] should be [library] Seems like a simple bugfix. Maybe I will dig in to this and fix it? |
That results in the flow server not being able start. |
Heh, yeah I noticed that too late. All I noticed was that the demo then worked, which I assume is because flow didn't run at all. So, I still don't know how to get flow working in this demo. But for fun you could try the following instead of [libs] [kittens] and they all have the same result! |
What is the best way to downgrade flow if I have version 0.10.0 installed with homebrew? |
If you don't have this version it will display what versions you have access to. |
No joy with 0.9.2, 0.8.0, 0.7.0. |
@jasongonzales23 After downgrading flow make sure to cd into your proj directory then try restarting the flow server by using 'flow stop' and 'flow start'. See if that helps. @jergason Did you resolve this issue? |
@jasongonzales23 thanks,it fix my error |
Hi everyone, thanks for the reports and sorry that you guys are having trouble! I'm a member of the Flow team and we spent the last day looking into this issue. There are two problems being discussed in this issue, both regarding react-native and Flow having trouble working together. The two problems are:
This evening we deployed react-native 0.4.1, which included the following changes:
Over the next week I'm going to try and tackle this problem of making sure that people use the right version of Flow with each version of react-native. Here are my tentative plans:
So yeah, sorry for the pain, thanks for the report, and look for some related improvements shortly! |
Thanks @gabelevi! Your plan sounds good to me 👍 |
@christopherdro that fixed my error. thanks! |
@jasongonzales23 fixed my problem. thx |
+1 |
+1 |
I feel like I have nowhere to start with using Flow right now. Has anyone got an RN project running with Flow? |
cc @vjeux ^ |
@gabelevi is the right person to talk to about flow :) |
@gabelevi Lemme know if you need help with testing this. I've a project already setup with flow. |
+1, it looks like flow just does not work with RN from the box right now, any suggestions how to fix this? |
There is one solution i can propose to fix this issue - it is possible to create interface file for
declare module "react-native" {
declare var exports: (callback: any) => any;
}
declare module ExecutionEnvironment {
declare var exports: (callback: any) => any;
} and add to .flowconfig
This works for me right now, i can create pull request to update yeoman generator |
This seems to be working for |
Also on a pretty new project over here, getting 19 errors from running 'flow'. |
+1 (agree with cupofjoakim, have issue with default project seed) |
+1. I got as same issue as the one cupofjoakim reported. |
The 'init' project creates a .flowconfig which specifies [version] 0.27.0 - which works according to Michael Helvey in this stackoverflow post. The actual issue for me is that flow binaries are not available in brew for back sourcing. I have flow version 0.23.1 and now 0.28, and 0.29.
If these were available it would be simple to regress flow to the correct version, and then happy days :) |
npm install [email protected] |
@satya164 thank you! but how do I include it in Nuclide? |
Nuclide doesn't support it yet. But support is coming - https://twitter.com/natmote/status/755871913864466433 |
Any recommendations if flow should be a dev dependency of a react-native project? I'm guessing yes, since the eslint version very sensitive. |
+1 |
Looks like this can be closed as well (see #8773). |
Steps to reproduce:
react-native init someproject && cd someproject
flow init
flow
I am on OS X 10.10.2, iojs 1.6.3, react-native 0.3.10, and flow 0.8.
Here is the JSON from the first few errors:
The text was updated successfully, but these errors were encountered: