Error when used with Gatsby: error "window" is not available during server side rendering.
See original GitHub issueThe project isn’t open source 😞 but here’s a relevant snippet from a build:
5:22:47 PM: error "window" is not available during server side rendering.
5:22:47 PM:
5:22:47 PM: > 1 | !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.Freezeframe=n():t.Freezeframe=n()}(window,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return
...
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Gatsby window not available during server side rendering ...
I tried to read through the documentation on this issue and attempted to use their window check conditional, but my redirect either didn't...
Read more >Gatsby build Error: "window" is not available during server ...
I have created an application and successfully integrated with MSAL to authenticate users using Azure AD. gatsby develop working fine.
Read more >Gatsby - the window is not defined error, what and how to fix it?
Gatsby is a React-based framework. If the problematic code is in the component's render function, move that code into a useEffect hook or...
Read more >Gatsby 'window.location' not available during SSR - Clint Vidler
Problem. Gatsby error message: failed Building static HTML for pages - 4.279s "location" is not available during server side rendering.
Read more >Window is not defined in gatsby build : r/gatsbyjs - Reddit
failed Building static HTML for pages - 5.988s ERROR #95312 "window" is not available during server side rendering. See our docs page for...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

https://www.npmjs.com/package/react-freezeframe !!
hi everybody, I’m getting the same error when using next.js. I tried defining
if (typeof window !== "undefined") { new Freezeframe(); }which removed the ‘window not defined error’, but now the project is not compiling. Please let me know if you need any further clarification. thank you!