anthonyjgrove / react-google-login

A React Google Login Component
https://anthonyjgrove.github.io/react-google-login
MIT License
1.85k stars 425 forks source link

React 18 #529

Open hamzashakir99 opened 2 years ago

hamzashakir99 commented 2 years ago

React 18 is not supported this Library version

leecheuk commented 2 years ago

While we wait for this, hopefully this helps.

npm uninstall react-google-login
npm install @leecheuk/react-google-login

@leecheuk/react-google-login is a fork of anthonyjgrove/react-google-login and has plugin_name support & updated peerDependency for React 18.

anhdiepmmk commented 2 years ago

pls do support react 18 i'm wating for this

dani69654 commented 2 years ago

Following

BillyG83 commented 2 years ago

React 18 was like soooooo last spring 😅 LFG!!

rossanag commented 2 years ago

While we wait for this, hopefully this helps.

npm uninstall react-google-login
npm install @leecheuk/react-google-login

@leecheuk/react-google-login is a fork of anthonyjgrove/react-google-login and has plugin_name support & updated peerDependency for React 18.

sadly, it doesnt work for me either: "Can't resolve 'react-google-login'"

leecheuk commented 2 years ago

While we wait for this, hopefully this helps.

npm uninstall react-google-login
npm install @leecheuk/react-google-login

@leecheuk/react-google-login is a fork of anthonyjgrove/react-google-login and has plugin_name support & updated peerDependency for React 18.

sadly, it doesnt work for me either: "Can't resolve 'react-google-login'"

Have you tried clean cache or delete node_modules?

# Delete node_modules
rm -rf node_modules

# Clean npm cache
npm cache clean --force

npm install
rossanag commented 2 years ago

Thanks for your quick response, I will try later on and let you know. (I couldn't open an issue in your repo) OS: Ubuntu 22.04

mrprince123 commented 2 years ago

Hey I am also facing the same problem. Please help me I want to install react-google-login

nebulae commented 2 years ago
npm install @leecheuk/react-google-login

the real mvp, merci for this

mrprince123 commented 1 year ago

Hope this will help

oksurya commented 1 year ago

use @react-oauth/google

jenishkhunt01 commented 1 year ago

@leecheuk Very much helpful. much appreciated.

mohammed-shaheer-c commented 1 year ago

i was using this npm install @leecheuk/react-google-login but the error is coming You have created a new client application that uses libraries for user authentication or authorization that are deprecated. New clients must use the new libraries instead

tariqrasheed172001 commented 1 year ago

i was using this npm install @leecheuk/react-google-login but the error is coming You have created a new client application that uses libraries for user authentication or authorization that are deprecated. New clients must use the new libraries instead

npm i gapi-script

add this in your app.js or index.js where routes has been defined import { gapi } from 'gapi-script';

gapi.load("client:auth2", () => { gapi.client.init({ clientId: "*****.apps.googleusercontent.com", plugin_name: "chat", }); });