Couldn't find preset "flow" relative to directory
See original GitHub issueWhen building on Android in release mode (react-native run-android --variant=release
), I’m getting the following error:
Couldn’t find preset “flow” relative to directory “/project-path/node_modules/react-native-walkthrough-tooltip”
It’s fixed by removing flow
from the .babelrc
presets.
I’m not sure if removing the flow preset will adversely affect anything. If this seems like an appropriate fix, I can submit a PR.
RN v0.53.3
react-native-walkthrough-tooltip v0.3.0
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Couldn't find preset "flow" relative to directory - Stack Overflow
Strange it seems that I am the first person to experience this "flow" preset error on the interwebz.. My .babelrc is configured as...
Read more >Error: Couldn't find preset "flow" relative to directory
Install babel-preset-flow. The error occurs because "babel-preset-flow" is not found in the project. Simply install it.
Read more >Upgrade to Babel 7
In Babel 7, values are resolved consistently either relative to the config file that loaded them, or relative to the working directory. For...
Read more >Couldn't find preset "env react" relative to directory "src"-Reactjs
Coding example for the question React: Couldn't find preset "env react" relative to directory "src"-Reactjs.
Read more >@babel/preset-react | Yarn - Package Manager
Important: This documentation covers modern versions of Yarn. For 1.x docs, see classic.yarnpkg.com. Yarn.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jasongaare Just FYI - removing the
flow
preset in.babelrc
works for Debug and Release modes. It looks like thereact-native
preset will handle everything. Let me know if you want a PR for it.@zachrnolan @yongzhi-chen
I have a task set to remove flow from this repo, as it seems it is causing more harm than good. However, I just haven’t had the time to do it.
I just published version
0.4.1
that removesflow
from the.babelrc
file. Let me know if that helps until I can get in and clean up more!