google-pay / google-pay-button

Google Pay button - React, Angular, and custom element
Apache License 2.0
254 stars 61 forks source link

ReferenceError: Can't find variable: google (iOS) #238

Closed johnratignier closed 1 year ago

johnratignier commented 1 year ago

Describe the bug Sometimes, sentry catches and raises a "ReferenceError: Can't find variable: google". Seems to happen only on iOS devices

To Reproduce Difficult to reproduce:

  1. Load the GooglePay button (I suppose it happens during the mount)
  2. Try to load multiple times...
  3. ...Until the error occurs

Expected behavior No error

Screenshots

Capture d’écran 2023-07-13 à 10 47 52

Component information:

Environment:

Additional context Add any other context about the problem here.

dmengelt commented 1 year ago

@johnratignier you are using the latest version of the react component. Right?

johnratignier commented 1 year ago

Arf no, we are using 3.0.6. I just see that has been handlef in 3.0.9. Big sorry for that. I think we can close :)