Error: Unable to retrieve the document from the global scope. #2095
Unanswered
Yokubjon-J
asked this question in
Q&A
Replies: 1 comment
-
|
I'm facing the same error and issue. However, it doesn't block rendering the page, and the page fully works fine. This error is preventing search engines to index the page though |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was implementing SSR with react. For this purpose I have installed emotion/server, emotion/cache and express (and webpack!). But I have encountered a problem with rendering remirror on the screen. I believe the problem is in my server.js file, which is an entry file for webpack. Due
ReactDOMServer.renderToStringin this line, my program is throwing:However, If I just remove the
ReactDOMServer.renderToStringpart from that line, I get the errorHydration failed because the initial UI does not match what was rendered on the server.I run my program by typing
npm run development.I want to know your thoughts on the problem. Please let me know if I missed some detail.
Beta Was this translation helpful? Give feedback.
All reactions