-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"ReferenceError: Can't find variable: process" after update to 0.14.2 #4098
Comments
I believe this is also #4022 |
This should be fixed in latest versions of React Native. Closing out for now! |
The recommendations all say to upgrade react to 15.2.1. I just got this same error/crash with react=15.3.1. |
Same problem here as GeoffreyPlitt. Receive the error with both react 15.2.1 and 15.3.1 |
This error is quite prevalent in the latest RN. It happens the most when a new npm package has been installed. |
Downgrading to 15.3.2 solved this for me. Didn't figure out the issue with 15.4.0. |
I've been having this same issue. I renamed one file and hit when to schittz.. I've tried downgrading my react-native package and also my react package. I can't find the right combination of [email protected]?.? with react-@15.?.? to get my app up and running. If anyone has any suggestions. Let me know please. |
I had the same error ([email protected], [email protected]). I've tried virtually everything and what finally helped was a restart of my MBP. Sounds weird, i have no idea why, but if this is of help to you, i'm happy. |
I had the same error after upgrade react-native(0.37.0) and react(15.4.0) , finally I downgrading the react to 15.3.2 solved this |
I am getting this error too. With RN 0.37. I've tried everything now. Restarting, changing React version etc. Nothing works. Any help out there? |
Do you use any custom babel plugins? I had one which tried to access process.env before proper initialization by RN. |
@matttti No, but after 24h of trying a million things, finally upgrading to RN 0.38 solved it. No idea why though. But thanks for the reply! |
Faced with similar issue on version [email protected]. Environment: Win 7. Do you have any proposals how to solve it? |
@Gelassen Downgrade to [email protected] |
I use yarn instead of npm v5 to solves this problem(for anyone might stuck in here) |
having this issue with RN 0.51. Is it only me? |
@itinance I do have the issue too. |
yep, 2018-Jan-20, RN 0.51 same problem, no idea why, |
Hi,
I updated to version 0.14.2 from 0.13 and getting errors referring to variable "process" that does not yet exist.
First location it fails is here in the main.jsbundle:
var ReactPerf={
enableMeasure:false,
storedMeasure:_noMeasure,
measureMethods:function(object,objectName,methodNames){
if(process.env.NODE_ENV !== 'production'){
My package.json:
{
"private": true,
"scripts": {
"start": "node_modules/react-native/packager/packager.sh"
},
"dependencies": {
"art": "^0.10.0",
"flux-util": "0.1.1",
"immutable": "^3.7.4",
"is-promise": "^2.0.0",
"parse": "^1.6.9",
"parse-react": "^0.5.0",
"pure-render-decorator": "^0.1.0",
"react": "^0.14.2",
"react-dom": "^0.14.2",
"react-native": "^0.14.2",
"react-native-carousel": "^0.3.5",
"react-native-image-picker": "^0.9.0",
"react-native-linear-gradient": "^1.1.0-alpha",
"react-native-navbar": "^0.5.2",
"react-native-video": "^0.6.1",
"react-pure-render": "^1.0.2",
"react-timer-mixin": "^0.13.2"
}
}
The text was updated successfully, but these errors were encountered: