-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Flow crashes when seeing an invalid package.json #5898
Comments
… (and to work around facebook/flow#5898)
a workaround is to add the conflictive file to the [ignore] section in the .
|
That's what I did, for the file that was causing me problems. But it's very poor usability to force users to do that, especially when the error message doesn't tell you what file (or even what dependency) is causing the problem. It's not easy to find the offending file if you have many dependencies. |
have the same issue with this dependency |
Looks like this was fixed in f942d96 |
See it in action on a real package:
Here is what that ignored file looks like:
Seems that the same thing happens when you have any file named package.json containing something like that.
I'm also going to submit a PR to module-deps to get them to stop putting tests in their npm package, but I figure it's a more general problem that you guys might want to look into.
The text was updated successfully, but these errors were encountered: