I have a [email protected] project. I have deleted the node_modules folder and after i have given the following commands:
npm i
react-native upgrade
but I get this error:
react-native.js:15
ReferenceError: __DEV__ is not defined
How do I fix?
Adding
/* global __DEV__ */
To the top of the file worked for me.
Maybe this? https://github.com/facebook/react-native/issues/7814
Removing .babelrc seems to fix the problem.
My .babelrc:
{ "presets": ["react-native"] }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With