You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since babel7, we can use @babel/preset-typescript to transpile typescript files seamlessly. Unless, babel-preset-react-native ships with flow, and an error happens: Cannot combine flow and typescript plugins. @babel/preset-react and @babel/preset-create-react-app both addressed the issue, either by removing the flow preset by default, or adding an option to disable it (link and link).
Edit: it appears that disabling @babel/plugin-transform-flow-strip-types breaks the RN build. Is there any option for flow and typescript to live together?
The text was updated successfully, but these errors were encountered:
Environment
Description
Since babel7, we can use
@babel/preset-typescript
to transpile typescript files seamlessly. Unless,babel-preset-react-native
ships with flow, and an error happens:Cannot combine flow and typescript plugins
.@babel/preset-react
and@babel/preset-create-react-app
both addressed the issue, either by removing the flow preset by default, or adding an option to disable it (link and link).Would either solution be possible?
Reproducible Demo
https://github.com/adrienharnay/babel-preset-react-native-conflict-repro
Thanks in advance!
Edit: it appears that disabling
@babel/plugin-transform-flow-strip-types
breaks the RN build. Is there any option for flow and typescript to live together?The text was updated successfully, but these errors were encountered: