question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does not work with SSR

See original GitHub issue

Love the project so I’m sad to find out this does not work for me because it fails for me when building with gatsby build

WebpackError: ReferenceError: window is not defined

but you can easily test it yourself with:

// fail-retoggle.js
require('retoggle')
node fail-retoggle.js

And get

ReferenceError: window is not defined

I tried searching for references to window in this project but could not find any which confuses me. Anyone else bumping into this problem?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
alamproscommented, Feb 28, 2019

I’ve tried getting this to work with Gatsby and failed miserably. A little digging shows the problem seems to stem from react-json-view#121.

0reactions
dhmacscommented, Jun 26, 2020

@Raathigesh I would like to sketch something on my own before deciding if it makes sense to make a new package or contribute to this one 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

SSR is not working on project build with angular 11
I a not able to see that page content in that. Tried multiple things for that but didn't work. what should I do...
Read more >
Does not work with SSR · Issue #217 · tajo/react-portal - GitHub
When running this code with SSR I am seeing this: Invariant Violation: Portals are not currently │ supported by the server renderer.
Read more >
Inertia SSR does not work - Laracasts
I have setup new Laravel project with Breeze package + Inertia SSR support php artisan breeze:install vue --ssr I do everything according Inertia...
Read more >
Server-side rendering (SSR) with Angular Universal
This guide describes Angular Universal, a technology that renders Angular applications on the server. A normal Angular application executes in the browser, ...
Read more >
How to Disable Server-Side Rendering (SSR) in Next.js
Step 1: Rewrite All Requests to pages/index.js · Step 2: Disable SSR for Page Content · Step 3: Check that Everything Works with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found