react-native-storybook-loader icon indicating copy to clipboard operation
react-native-storybook-loader copied to clipboard

react-native + flow issue

Open costerik opened this issue 5 years ago • 2 comments

$ 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.

costerik avatar Apr 07 '20 14:04 costerik

How do you replicate this?

elderfo avatar Apr 07 '20 14:04 elderfo

Follow this steps

  • npx react-native init ProjectName
  • yarn add -D react-native-storybook-loader
  • yarn 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

costerik avatar Apr 07 '20 15:04 costerik