elderfo / react-native-storybook-loader

An automatic story loader for react-native-storybooks
https://github.com/elderfo/react-native-storybook-loader
MIT License
299 stars 27 forks source link

react-native + flow issue #90

Open costerik opened 4 years ago

costerik commented 4 years ago
$ 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.
elderfo commented 4 years ago

How do you replicate this?

costerik commented 4 years ago

Follow this steps

I solved it adding this rule <PROJECT_ROOT>/node_modules/findup/.* in the [ignore] section of the .flowconfig file