Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

Uncaught TypeError: Cannot read properties of undefined (reading 'load') #520

Open
prajwalkulkarni opened this issue May 22, 2022 · 2 comments

Comments

@prajwalkulkarni
Copy link

Since Google is deprecating libraries for user authentication and authorization, I'm following this migration guide to update all the dependencies. When I update the script src & the jsSrc prop in the GoogleLogin component to https://accounts.google.com/gsi/client, I'm getting this error:

Uncaught TypeError: Cannot read properties of undefined (reading 'load')

I'm not sure how to fix this nor did I find any suitable solution on StackOverflow, does this issue require any updates in the component to get it resolved, or is there anything that can be done by the component users to fix the issue?

@pedrovgs
Copy link

pedrovgs commented Jun 3, 2022

I'm in a similar situation :( No idea how to fix this.

@ariccio
Copy link

ariccio commented Aug 4, 2022

I made no changes, but just saw this issue in prod, at this line:

{snip} _type:A};"code"===_&&(o.access_type="offline"),window.gapi.load("auth2",(function(){var r=window.gapi.auth2.getAuthInstance();r?r.then((func {snip}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants