-
Notifications
You must be signed in to change notification settings - Fork 57
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
fix: issues with import type conversion on recent versions of @babel/traverse #255
Conversation
This at least works around the issue in babel path caching right now. The way there's a global cache of paths in |
@jedwards1211 What's your NPM? I will add you as an owner to NPM and GitHub. |
Okay thanks! Also jedwards1211 on npm |
@gajus just curious, did you stop using |
I gave up on Flow altogether. It is clear that Facebook gives 0 💩 about the community. It is sad because I, even after using TS for a while, prefer Flow. But I would not pick it for a commercial project. I am slowly rewriting all my packages to TS. You've been added to NPM and GitHub. |
Yeah it's a shame...btw you might be interested in my typescript-validators package as a replacement for validation via flow-runtime, (unless you already found something better for that purpose?). It's actually based on some guts of the flow-runtime sub package, but doesn't require any kind of babel plugin. |
Cool! I stargazed it. 👍 And yes, it is a shame. Flow had a lot of potential. But seeing that they completely dropped any efforts to support the community, there is simply no future for it. I find runtime validation mostly useful when working with external data. We don't do that much in the current venture that I am involved. |
@gajus did you ever figure out how to get I see a lot of flow errors because it can't resolve packages that wind up in the workspace root |
It has been too long sorry. The last time I was working with it, I remember ending up rewriting large chunks of code to make it work. Unfortunately, those commits never saw the library since I lost my laptop. 🤷♂️ So unfortunately, I only remember that it wasn't straightforward. |
For what it is worth, if you are going to work on this, we can create issues for each thing and assign some monetary reward through #207. They offered to sponsor development of flow-runtime. This was a few months back, but I am happy to reach out. |
I see. Well, I'm hesitant to get too in the weeds on some issues, for a long time I've thought flow-runtime was over-ambitious, and I've never really liked the idea of turning type annotations into runtime validations everywhere, rather than just at API boundaries. If I even stick with Flow in the long run I would want to eventually migrate to something that feels more futureproof than flow-runtime... It's just in the short term I'm stuck with it so some effort to keep flow-runtime working is worth the effort for me. |
I understand. I was in a similar boat. |
Man just trying to fix flow errors in the |
I honestly think it's better for everyone if we officially deprecate the project, because we know no one's ever going to have a good reason to fully fix and maintain it. |
I hold the project with the hope (however unlikely) that Flow will rebounce. I would personally benefit from a project such as flow-runtime succeeding, and would be willing to invest into the development of the project at a future time. As it stands though, as I do not use Flow in my current work place, I do not have capacity to support Flow. |
I think it would be better to start over with a less ambitious format though where runtime type generation and assertions are always opt-in and don't intend to support everything. Btw, I just figured out enough of how to implement flow type defs for |
fix #254