flow/flow-bin

help about flow check other directory, I get a error!!!

comeriven opened this issue · 3 comments

Hello there,
I have a strange but excellent project that needs to use flow,
Directory Structure:
A project

/A
|____node_modules
|____src
|     |_____Component
|     |_____routes
|____snippet
|____package.json
|____.flowconfig

This is the original project, and its path is: /Users/workspace/A/
now, I use bash to execute npm run snippet --project=B,
It will generate a B project under /Users/workspace.
/Users/workspace/B/
B project

/B
|______.flowconfig
|______Component
|______routes

My B project does not have a package.json file or a node_modules directory, and I launch the project through the A project to execute the command npm start -- --project=B

I can import third-party modules into the project through import in the B project. Like React.
How do I configure it to avoid stream errors?

Error:(3, 22) Cannot resolve module `react-router`.

Supplement: No error under A project!

Supplement: version is flow-bin@0.77.0
I want to get a solution that doesn't use flow-typed.
thank you very much!

mroch commented

Closing out old issues. This repository is just packaging prebuilt binaries. Please report issues with Flow itself on facebook/flow