0

I'm getting this ESLint error from VisualStudio Code after adding this module react-native-camera to my react native app and updating gradle to 4.4.1

ESLint: Cannot read property 'range' of null. Please see the 'ESLint' output channel for details.

enter image description here

Also the lint stoped woking properly. I'm using the popular ESLint plugin for VSCode - ESLint dbaeumer.vscode-eslint

Any suggestions?

PS the app with the new module works fine.

Cristian Tr
  • 716
  • 1
  • 7
  • 25
  • Seems the react-native-camera developers don't care much about static code analysis: https://github.com/react-native-community/react-native-camera/issues/316 – Randy Casburn May 18 '18 at 04:01

1 Answers1

1

It turns out that the error was cause because my version of babel-eslit, it doesn't support await/async and I used them to implement the react-native-camera module.

More details about this problem here.

Cristian Tr
  • 716
  • 1
  • 7
  • 25