i have a [email protected] project on OSX.
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:
> .../node_modules/react-native/Libraries/react-native/react-native.js:15
> if (__DEV__) {
> ^
>
> ReferenceError: __DEV__ is not defined
How do I fix? I can't run my project now...
Removing .babelrc seems to fix the problem.
My .babelrc:
{
"presets": ["react-native"]
}
I use same config, but not meet the problem
Saro Vindigni [email protected]于2016年5月30日周一 01:40写道:
Removing .babelrc seems to fix the problem.
My .babelrc:
{
"presets": ["react-native"]
}—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/facebook/react-native/issues/7814#issuecomment-222372790,
or mute the thread
https://github.com/notifications/unsubscribe/ABc9iqbur0KDLInLllb4AxHett2v2Xscks5qGc9wgaJpZM4IpCJF
.
You have [email protected]?
Can you try to delete the directory node_modules?
And after give:
npm i && react-native upgrade
I had not entered 'babel-preset-react-native' in my package.json
thanks for @sarovin , your cmd help me, give you 666...
@sarovin @xuchuandong 666 has different meanings in different cultures. It represents a thumbs up in China. Haha.
Thanks @alex1007...I'm better now 😌
Most helpful comment
I had not entered 'babel-preset-react-native' in my package.json