Replies: 1 comment 2 replies
-
Hi! Is there a reason why you're trying to do this? It breaks e.g. the extraction of the Static Query you're using |
Beta Was this translation helpful? Give feedback.
2 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.
-
Preliminary Checks
Description
When using
react-dom/server
ingatsby-ssr.js
withinwrapPageElement
, it causes the build to break with an error. Only happens when usingreact-dom/server
.Reproduction Link
https://github.com/that1matt/ssr-wrap-page-element-error
Steps to Reproduce
wrapPageElement
togatsby-ssr.js
renderToString
fromreact-dom/server
element
fromwrapPageElement
inrenderToString
gatsby build
...
Expected Result
To not error, and allow for converting react component to string result.
Actual Result
Environment
Config Flags
No
Beta Was this translation helpful? Give feedback.
All reactions