t49tran / react-google-recaptcha-v3

Google Recaptcha V3 integration for React
MIT License
427 stars 91 forks source link

ReferenceError: process is not defined #135

Closed liviuzachin closed 1 year ago

liviuzachin commented 2 years ago

Here must check if process is defined too. Getting ReferenceError: process is not defined in production.

viliuscicenas commented 2 years ago

I think this issue was mentioned in here #107 and it seems it is ignored for a while, technically that code could be just wrapped in try catch block as it is non-essential code in my opinion. Btw, your provided fix in the pull request is valid, though in my case my code crashed even from mentioning process

liviuzachin commented 2 years ago

I see, in my case it crashed a Remix app and took a while to find out the root cause. Thanks.