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.

Server side rendering support

See original GitHub issue

Describe the bug

The package causes the build system to crash when used in server-side rendering app

To Reproduce

Cannot be reproduced in an online platform, but try to include the package in any server-side rendering environment

Expected behavior

Should support server-side rendering


The error thrown by the compiler:

var requestAnimationFrame = window.requestAnimationFrame;
ReferenceError: window is not defined

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
TremayneChristcommented, Aug 1, 2019

I’ve tested this in some different environments and all seems ok. If you’re still having problems, feel free to reopen. Thanks!

1reaction
TremayneChristcommented, Jul 30, 2019

Ok I’ve checked out your repo. I get it 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is server-side rendering: definition, benefits and risks
Server -Side Rendering (SSR) is an approach to rendering content for the website. Learn the benefits, drawbacks and frameworks of server-Side ...
Read more >
What is server-side rendering and how does it improve site ...
Server -side rendering (SSR) addresses the performance and search engine optimization issues of single-page JavaScript applications.
Read more >
Client-side vs. server-side rendering: why it's not all black and ...
Server -side rendering is the most common method for displaying information onto the screen. It works by converting HTML files in the server...
Read more >
Take advantage of these 5 benefits of server-side rendering
1. Improved data security and PIPA compliance · 2. Improve page load time with minimized network latency · 3. Predictable server-side processing ...
Read more >
The Benefits of Server Side Rendering Over Client ... - Medium
SSR throughput of your server is significantly less than CSR throughput. For react in particular, the throughput impact is extremely large.
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