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
Cannot resolve JSON file starting with a dot #7673
Comments
This is true even for JS files ( |
Yeah, Flow ignores all dotfiles, it probably should check if they have extension |
Can I opt-out from this? I know it's unusual to start with a dot so it's not very common but it really makes sense in my case. Why does Flow ignore dot files by default? |
No idea, it also wouldn't work with [include] |
Maybe you can try symlinks |
Hi, can I work on this ? |
@gabrielrumiranda Sure you can, what you want to know about codebase? |
@goodmind is my first contribution in project, i don't know much about codebase. The module who works with imports is |
Lines 97 to 102 in 95ef246
This should be here I think |
@goodmind the tests of this part of code is in tests/declarations_files_node ? |
Not sure where the tests should be, maybe new folder? |
I create a PR, #8045 |
Flow version:
Flow cannot resolve require with JSON filename starting with a dot:
It results in this error:
However, when I remove the dot (and rename the file) everything is fine:
Thank you very much for checking it! :)
The text was updated successfully, but these errors were encountered: