-
Notifications
You must be signed in to change notification settings - Fork 799
Incompatible with isomorphic (document not defined) #1126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This overlay was added in 4.6.0. I thought that it could lead to some issues, but that code should not be called on server side. |
Ok, I'll pull it out of the server side |
theKashey
added a commit
that referenced
this issue
Dec 17, 2018
This was referenced Dec 17, 2018
Merged
Try 4.6.1 |
Thanks, that worked |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you are reporting a bug or having an issue setting up React Hot Loader, please fill in below. For feature requests, feel free to remove this template entirely.
Description
When I try to use this, I get a document undefined error. This used to work just fine, but only recently started breaking. I haven't changed my code at all. I've been using this plugin just fine for months. My application is isomorphic, so the error is coming from the node server. I'm not sure what changed, but it should not be accessing the
document
when running isomorphic. I'm not sure what was changed in this codebase to break it. Again, previous versions work just fine.The exact line where the project is failing is the following . . .
react-hot-loader/src/errorReporter.js
Line 108 in f15b108
Expected behavior
The application should start without errors.
Actual behavior
I get the following error . . .
Environment
React Hot Loader version: 4.6.0
node -v
: v8.12.0npm -v
: v6.4.1Then, specify:
Reproducible Demo
https://github.com/codejamninja/reactant/tree/master/examples/web-isomorphic
The text was updated successfully, but these errors were encountered: