[pgAdmin4][Patch]: RM_2596 - Query tool not working in DesktopRuntime on Mac OS X - Mailing list pgadmin-hackers

From Surinder Kumar
Subject [pgAdmin4][Patch]: RM_2596 - Query tool not working in DesktopRuntime on Mac OS X
Date
Msg-id CAM5-9D83KF2KzmDA6o95V1a=7DA609z_HT3cT-FHrv4ZcPMDOA@mail.gmail.com
Whole thread Raw
Responses Re: [pgAdmin4][Patch]: RM_2596 - Query tool not working in DesktopRuntime on Mac OS X
Re: [pgAdmin4][Patch]: RM_2596 - Query tool not working in DesktopRuntime on Mac OS X
List pgadmin-hackers
Hi,

I inspect the react code and in call stacks, found `process.env.NODE_ENV` is undefined due to which 'SyntheticEvent.call' is not callable.

So, to fix this, i add 'definePlugin' to plugins for `dev` environment in `webpack.config.js`. Initially it was added only for `production` environment. but it is needed for both, because React code is conditional based on environment variables set.

Please find attached patch and review.

Thanks,
Surinder
Attachment

pgadmin-hackers by date:

Previous
From: Akshay Joshi
Date:
Subject: Re: Discussion on improving alertify notifications logic
Next
From: Dave Page
Date:
Subject: Re: Discussion on improving alertify notifications logic