question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Couldn't find preset "flow" relative to directory

See original GitHub issue

When 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:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
zachrnolancommented, Oct 30, 2018

@jasongaare Just FYI - removing the flow preset in .babelrc works for Debug and Release modes. It looks like the react-native preset will handle everything. Let me know if you want a PR for it.

0reactions
jasongaarecommented, Jan 11, 2019

@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 removes flow from the .babelrc file. Let me know if that helps until I can get in and clean up more!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found