Created
June 9, 2023 01:19
-
-
Save KrisKnez/95889bc9f171d2919a476bbe4adaf70a to your computer and use it in GitHub Desktop.
reactjs-social-login: window is not defined
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This problem occurs when using reactjs-social-login with a SSR metaframework. | |
| // The solution below is for Next.JS. Your framework may do dynamic imports differently. | |
| const LoginSocialInstagram = dynamic( | |
| () => import('reactjs-social-login').then((lib) => lib.LoginSocialInstagram), | |
| { ssr: false } | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you G! 👍