-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Still checking non-dependencies in node_modules #5164
Comments
Same here with 0.63.1. |
We have a project that uses flow. Our flow config looks like this:
We are using flow version Linux/Mac OS users can compile file but users on Windows see a whole load of flow errors related to stuff inside node_modules. Seems very much related to this issue. Any ideas? |
@massimonewsuk could you list some specific files under node_modules that are resulting in errors? |
Hmm, seems like a different problem to me. Although they both fall into a larger "Flow errors from node_modules" category, this issue is more specifically about Flow checking a file that isn't directly or transitively included from non- In your case, however, the files that Flow is checking actually do contain typedefs that are used by executable code. |
@mjomble Sorry I just realised that these were actual dependencies, not non-dependencies. I deleted my comment with my package.json and errors because it's probably spamming this issue. I've created a separate issue for mine #6086 I agree with you about the how we would want to configure flow linting differently, but I'm also confused why it works on Linux and Mac OS and gives errors on Windows. Thanks for your help. |
I have exactly the same issue since there is indirect dependency on |
More discussion on this here #869 |
The release notes of 0.57.0 mention this new feature:
However, even with 0.57.3 (on Windows 7, if that matters), I'm still experiencing the same issue as in these reports:
#5023
dcodeIO/bcrypt.js#66
The
bower.json
file is neither a direct nor a transitive dependency of my non-node_modules code, but it still gets checked, which results in a failure.If I rename it so it doesn't have a
.json
extension, Flow stops checking it.I've also noticed from the server output that Flow is monitoring
.css
and.png
files in node_modules for changes, which seems like unnecessary extra work.Is this a bug or intentional?
The text was updated successfully, but these errors were encountered: