-
Notifications
You must be signed in to change notification settings - Fork 513
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
does not support server side rendering #39
Comments
Hey, Yeah, I never tried it on server-side rendering. But I'm not sure how to implement this library without using the DOM. If you know how to fix it, let me know. |
Thanks for the quick response. There isn't really a way to use the library without the dom for parts such as positioning and scrolling. The issue is really that requiring the library tries to access |
hey! jsdom.env({
html: '<!doctype html><html><body></body></html>',
done: function (err, window) {
if (err) {
throw new Error(err);
}
global.window = window;
global.navigator = window.navigator;
var App = require('./components/App');
console.log(ReactDOM.renderToStaticMarkup(<App />));
}
}); |
@gilbarbara where should I put that code? |
@SunyoungKim508 If you still need it you could require an external script with Mocha, with |
@gilbarbara 9640e19 this release seems to break with |
Hey @gilbarbara,
Thanks for this library. It works great, however it does not support server side rendering. It would be totally ok to only show the tooltips on the client. The issue is the library cannot be required on the server due to accessing the
window
object onrequire
orimport
.Thanks,
Thomas
The text was updated successfully, but these errors were encountered: