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.

Incompatible with server-side rendering

See original GitHub issue

A source tree with react-modal in it, running in Node, yields the following:

/node_modules/react-modal/lib/components/Modal.js:18
    appElement: React.PropTypes.instanceOf(HTMLElement),
                                           ^
ReferenceError: HTMLElement is not defined

…and halts entirely.

How would you feel about making this propType a little more lenient (object, perhaps)?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
misubacommented, Jan 19, 2015

Could you post a gist? I’m pretty sure I don’t need the things to work on the server… I just need them to not crash the server.

0reactions
mzabriskiecommented, May 8, 2015

Resolved with #22

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular UNIVERSAL prerender error Method Promise ...
I was facing similair issue with my Azure Pipelines when the NodeJS version wasn't defined, then it took the latest LTS v16.18.0 ....
Read more >
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 >
Problems sending errors with reactjs and server side rendering
Hi,. We are making a web using reactjs in client side and nodejs in server side to make server side rendering, we want...
Read more >
What is server-side rendering and how does it improve site ...
Server -side rendering ensures that website content appears quickly, without first having to download and run application code.
Read more >
Troubleshooting Common Errors - Gatsby
Inconsistent CSS styles between develop and build using styled-components or ... Because gatsby develop doesn't run server-side rendering, the build may ...
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