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.

document not found error in SSR

See original GitHub issue

Getting following error:

react-table-hoc-fixed-columns/lib/index.js:3234
var el = document.createElement('a');
         ^
ReferenceError: document is not defined

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
GuillaumeJasmincommented, Mar 9, 2019

Thanks ! It’s released as v2.0.1

0reactions
otamnazcommented, Mar 8, 2019

Hi @GuillaumeJasmin

Tested with v2.0.1-alpha.1, No error found!

Read more comments on GitHub >

github_iconTop Results From Across the Web

React SSR: Document is not defined - Stack Overflow
This issue usually happens because when react is rendered on the server. It does not have a document or window object on the...
Read more >
SSR: ERROR ReferenceError: document is not defined #185
After compile without errors with SSR when get serve up an error appears on console and theres no component rendered inside view.
Read more >
Solve “document is not defined” errors in Next.js | by WebTutPro
Because in the Node.js world, document is not defined, document is only available in browsers. There are three ways to fix that: 1....
Read more >
Troubleshooting - Astro Documentation
This error occurs when trying to access document or window on the server. Astro components run on the server, so you can't access...
Read more >
Troubleshooting Common Errors - Gatsby
If you encounter a webpack error that says Generating SSR bundle failed after installing a plugin and trying to run gatsby develop or...
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