'react-google-login with jssrc for GIS throws error for undefined (reading 'load')
react-google-login with j s src for GIS throws error for undefined (reading 'load')
`
<GoogleLogin
clientId="...<client id here >.."
buttonText="Log In with Google"
j s Src="https://accounts.google.com/gsi/client"
onSuccess={handleLogin}
// scope={SCOPES.join(" ")}
onFailure={handleFailure}
cookiePolicy={"single_host_origin"}
></GoogleLogin>
`
Trying to migrate to new GIS SDK as api j s was giving error "pop was closed by user".
But on using new java script src , it errors - TypeError: Cannot read properties of undefined (reading 'load')
at HTMLScriptElement.<anonymous> (google-login j s)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
