deepakaggarwal7 / react-social-login

MIT License
373 stars 143 forks source link

social-login.js:749 Uncaught TypeError: Super expression must either be null or a function, not undefined #195

Open Majid-Sohail opened 3 years ago

Majid-Sohail commented 3 years ago

Getting error: social-login.js:749 Uncaught TypeError: Super expression must either be null or a function, not undefined After creating production build in react.

deepakaggarwal7 commented 3 years ago

Can you ensure you are using React.Component properly as suggested here in the UI component you've created to consume react-social-login.

deepakaggarwal7 commented 3 years ago

https://stackoverflow.com/questions/30116430/reactjs-giving-error-uncaught-typeerror-super-expression-must-either-be-null-or

Majid-Sohail commented 3 years ago

Yes, I'm using React.Component, I did a lot of research but couldn't find any solution. I'm using this module form past one year in production and didn't face any problem but yesterday suddenly it stops working, I ended up using a different module.

deepakaggarwal7 commented 3 years ago

Which version were you using? If you found it in v3.4.12, you can try v.3.4.13 which might fix the issue. I had upgraded webpack and heard issues of crashing nextjs Apps. I downgraded webpack and it resolved that issue. Yours could be related too.

deepakaggarwal7 commented 2 years ago

Is your problem resolved? If yes, what was the fix? Did the last comment help?