Skip to content
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

Does not work with @babel/preset-flow #39

Open
danny-does-stuff opened this issue Jan 13, 2023 · 1 comment
Open

Does not work with @babel/preset-flow #39

danny-does-stuff opened this issue Jan 13, 2023 · 1 comment

Comments

@danny-does-stuff
Copy link

danny-does-stuff commented Jan 13, 2023

When using flow (typescript alternative) in my project, "rewire-exports" starts choking on the files with the error

image

This error only happens if I have "rewire-exports" in my plugins. Once I remove it, babel works fine. It also still works when I am using "babel-plugin-rewire". The error only comes up when "rewire-exports" is included. I am happy to help debug this as it is currently pretty blocking for me.

This is also very confusing to me because my setup was working just fine up until today, when I tried to upgrade from jest 26 to jest 27, and then none of my tests worked. There's definitely something strange going on!

I would like to have the flow types stripped before "rewire-exports" runs, but I can't seem to get that to work either. Please let me know if there is any other info I can provide!

@asapach
Copy link
Owner

asapach commented Jan 13, 2023

Could you please create a minimal repro-case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants