react-native-storybook-loader
react-native-storybook-loader copied to clipboard
react-native + flow issue
$ flow
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ node_modules/findup/test/fixture/config.json:1:1
Unexpected end of input, expected a valid JSON value
1│
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ node_modules/findup/test/fixture/f/e/d/c/b/a/top.json:1:1
Unexpected end of input, expected a valid JSON value
1│
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ node_modules/findup/test/fixture/f/e/d/c/config.json:1:1
Unexpected end of input, expected a valid JSON value
1│
Found 3 errors
error Command failed with exit code 2.
How do you replicate this?
Follow this steps
npx react-native init ProjectNameyarn add -D react-native-storybook-loaderyarn add -D [email protected]yarn flow
I solved it adding this rule <PROJECT_ROOT>/node_modules/findup/.* in the [ignore] section of the .flowconfig file