---
title: "Discussion on \"Gatsby - the window is not defined error, what and how to fix it?\" | Hashnode"
description: "Discussion on \"Gatsby - the window is not defined error, what and how to fix it?\". Gatsby is one of the most popular Static Site Generators available to create pre-built markups for Jamstack apps. It is a React-based framework that offers a plethora of plug-in ecosystems to make life comfortable for the developer community. I have ..."
url: "https://hashnode.com/posts/gatsby-the-window-is-not-defined-error-what-and-how-to-fix-it/6024ceec50d5e944c5d4807f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Gatsby - the window is not defined error, what and how to fix it?](https://blog.greenroots.info/gatsby-the-window-is-not-defined-error-what-and-how-to-fix-it?utm_source=hashnode&utm_medium=feed)

Gatsby is one of the most popular Static Site Generators available to create pre-built markups for Jamstack apps. It is a React-based framework that offers a plethora of plug-in ecosystems to make life comfortable for the developer community. I have ...

Feb 11, 2021 · 6 min read · blog.greenroots.info  
Updated Feb 16, 2021  
Read the article

-   [#gatsby](https://hashnode.com/tag/gatsby)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#jamstack](https://hashnode.com/tag/jamstack)

## Written by

[Tapas Adhikary](https://hashnode.com/@atapas)

@atapas · Bangalore

  
[View profile](https://hashnode.com/@atapas)

Educator @tapaScript | Founder CreoWis & ReactPlay - Writer - YouTuber - Open Source

Co-Founder, @CreoWis | Teacher, @tapaScript | Founder, @ReactPlay | YouTuber | Writer | Human

## Responses 3

Markdown supported · ⌘↵ to post

[Edidiong Asikpo (Didi)](https://hashnode.com/@didicodes)

[Feb 11, 2021](https://hashnode.com/posts/gatsby-the-window-is-not-defined-error-what-and-how-to-fix-it/6024ceec50d5e944c5d4807f/comment/60250f674d9e7d4dd727e378)

Informative article as always, [Tapas Adhikary](https://hashnode.com/@atapas). Thanks for sharing.

[Rahul](https://hashnode.com/@RAHULISM)

[Feb 11, 2021](https://hashnode.com/posts/gatsby-the-window-is-not-defined-error-what-and-how-to-fix-it/6024ceec50d5e944c5d4807f/comment/6024dda28a18494dfcecbf3e)

Amazing article. Often faced this error.

[Tapas Adhikary](https://hashnode.com/@atapas)

[Feb 11, 2021](https://hashnode.com/posts/gatsby-the-window-is-not-defined-error-what-and-how-to-fix-it/6024ceec50d5e944c5d4807f/comment/6024dda28a18494dfcecbf3e#reply-6024e1208a18494dfcecbf7f)

Great to know [Rahul](https://hashnode.com/@RAHULISM) you found it helpful.

[Catalin Pit](https://hashnode.com/@Catalinpit)

[Feb 11, 2021](https://hashnode.com/posts/gatsby-the-window-is-not-defined-error-what-and-how-to-fix-it/6024ceec50d5e944c5d4807f/comment/6024d0884d9e7d4dd727dd9e)

Great article, as always!

P.S: I love coffee too!

[Tapas Adhikary](https://hashnode.com/@atapas)

[Feb 11, 2021](https://hashnode.com/posts/gatsby-the-window-is-not-defined-error-what-and-how-to-fix-it/6024ceec50d5e944c5d4807f/comment/6024d0884d9e7d4dd727dd9e#reply-6024d26c4d9e7d4dd727de31)

Thanks [Catalin Pit](https://hashnode.com/@Catalinpit). Yeah, let's meet over coffee sometime 😃.

[Catalin Pit](https://hashnode.com/@Catalinpit)

[Feb 11, 2021](https://hashnode.com/posts/gatsby-the-window-is-not-defined-error-what-and-how-to-fix-it/6024ceec50d5e944c5d4807f/comment/6024d0884d9e7d4dd727dd9e#reply-6024e1c88a18494dfcecbf90)

Sure thing [Tapas Adhikary](https://hashnode.com/@atapas)!
