-
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
[Regression from 0.45 -> 0.46] resolve_dirname no longer applies #4103
Comments
Can confirm this repros with https://gist.github.com/gabelevi/edc83db958db739fdf81749f205877b5 and that the issue was introduced with v0.46.0 @avikchaudhuri - was this your moving of require resolution that you landed near the end of April? |
We are facing the same regression and as a result almost every one of our files have errors. Is there anything I could do to help? I could whip up a reproduction repository if that helps. An alternative we are considering is to stop using # .flowconfig
[options]
module.name_mapper='appJS' -> '<PROJECT_ROOT>/app/assets/javascripts' // webpack
return {
resolve: {
alias: {
appJS: path.join(projectRoot, 'app/assets/javascripts')
}
}
}; |
Got the same problem. This no longer works after upgrade beyond 0.45.
|
The way we resolved it for now was to list out all the "root" directories separately with So instead of
we have this:
It isn't nearly as nice as having the |
Looks like the functionality this regression issue points out has been added back, with a combination like this:
(Example copied from #8156 (comment)) We were able to get rid of our
configuration by changing the
References:
Pull requests that never got merged but tried to get this feature back:
Sooooo... is this issue fixed now? Granted, it was a bit difficult to find out the correct configuration options to use as the docs haven't been updated yet. |
Can confirm
Getting "Cannot resolve module" errors on 0.111.0. No error on prior versions. |
Did you try the other approach I defined above, @spoulson? |
@valscion Yes, the Technically, I can migrate to |
@TrySound Why close this bug? |
resolve_dirname is not supposed to be used this way. It allows to specify node_modules alias. For node_modules flow does not watch file changes. This is implemented to solve your problem
So it's not really a bug. The change was made intentionally to solve performance issues. |
After upgrading from 0.45 to 0.46, we have hundreds of
Required module not found
errors.The relevant flowconfig snippet is:
An example of the new error:
This file is present:
The text was updated successfully, but these errors were encountered: