-
Notifications
You must be signed in to change notification settings - Fork 61
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] The parameter passed to require() must be a literal string #107
Comments
Is that an issue with flow parsing the source code of the project? I'm not sure how we could address it. |
Don't use dynamic require string I guess. I see, not sure how to solve it. |
Regarding the why of this new lines of code, it can be summarized with that tweet. I have been adding that line to the
|
Thank you for the hint. |
Also, you can tell flow to ignore the source of this package. I think that it's a better alternative to |
Im not that sure what exact purpose this dynamic require serves here. From what I see its needed somehow because of certain combination of babel plugins and their unsafe ordering. Will it be possible to get rid of it once babel7 gets released which will address issue of plugins ordering by adding an option to specify which plugin should run first and which plugin should run later? |
@Andarist Yes, hopefully, we should be able to remove the plugins option and the associated code. |
Worst case if you want to solve it in this repo you can add |
I'm closing the issue. I haven't seen a report for a long time. I'm assuming Flow stopped linting the node_modules. |
With 0.4.4 version.
The text was updated successfully, but these errors were encountered: