ReferenceError: process is not defined

I did all setup in my Expo Web app, but it seems a needed “process” variable has not been defined. Could you please enlighthen me on that, since I don’t know what else I could do? This is the error the app shows when running expo start:web :

ReferenceError: process is not defined

Module.../../../graphql/jsutils/instanceOf.mjs

node_modules/graphql/jsutils/instanceOf.mjs:3


   1 | 
   2 | 
 > 3 | export default process && process.env.NODE_ENV !== 'production' ? // eslint-disable-next-line no-shadow  
   4 | function instanceOf(value, constructor) {  
   5 |   if (value instanceof constructor) {  
   6 |     return true;

Obs.: Using AWS Amplify 4.21.0

Hi Rodhoff, did you find that process.env.NODE_ENV is defined in a standalone app?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.