How to initialize amplify on gatsby ssr? #32130
Unanswered
omar-shahid
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am currently trying to use aws-amplify with gatsby. The problem is when I initialize amplify on gatsby ssr file, I keep getting this error:
In terminal:
I tried using hooks, checking
if typeof window !== "undefined"
but no success.Here is the link to the repo: https://github.com/theJsTsGuy/public-gatsby-issue-repo
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions