Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FDA-134 Build fix for window undefined error. #191

Merged
merged 2 commits into from Sep 11, 2020
Merged

Conversation

nagkuchipudi
Copy link
Contributor

From blogs: gatsbyjs/gatsby#309

When building, Gatsby renders these components on the server where window is not defined. Generally with React the solution to this is only access window in componentDidMount or to check that window exists before accessing it.

@nagkuchipudi
Copy link
Contributor Author

Screen Shot 2020-09-09 at 5 24 53 PM

Attached is the build log after changes.

Copy link
Collaborator

@violetcrestedwren violetcrestedwren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed with Nag. LGTM

@nagkuchipudi nagkuchipudi merged commit f92c3c2 into master Sep 11, 2020
@violetcrestedwren violetcrestedwren deleted the feature/FDA-134 branch August 16, 2021 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants