Got JS Exception: ReferenceError: cannot find variable: process

After updating from scratch from 0.26 to 0.29 (and starting the update based on the reaction), I get the following error in the Android debugger:

Got JS Exception: ReferenceError: Can't find variable: process 

And this is an error message in the Android emulator

 java.lang.RunTimeException: ReferenceError: can't find variable process (http://10.0.2.2:8081/index.android.bundle (...) 

I have not changed any of my javascript applications since the update, and everything worked without errors, so I assume that the problem is not in javascript, and changing the versions of the answers deleted the variable "process"

Even when loading an empty index file (one responsive component that does nothing) it still leads to the same error.

+5
source share
2 answers

There was the same problem:

 java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: ReferenceError: Can't find variable: process 

Fixed updating version of React to the latest compatible version, 15.2.1 in my case:

 npm i react@15.2.1 --save 
+5
source

I had this problem, it turned out that my problem was that I did not stop and restart the packer after updating the reaction-native.

+1
source

All Articles