-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Why window instance is required on the server. #1291
Comments
@ats1999 I have a question. You said that accessing the |
I know the server does not have any window object. So, we can't use the window on the server. My question is Why window instance is required in the viewer component? I can guess, this editor might be using any function to convert markdown text into HTML content.
Until a window object is required, I can not use the server-side rendering feature. |
This issue has been automatically marked as inactive because there hasn’t been much going on it lately. It is going to be closed after 7 days. Thanks! |
This issue will be closed due to inactivity. Thanks for your contribution! |
related issue #1222
Window instance is required for this editor, this is not a big problem. But, why window instance is also required in the
Viewer
component. I am using NextJs with ReactJs, i need to render markdown content on the server. Because of this problem, i am not able to render markdown content on the server.Although i can use
dynamic
provided by nextJs to render content on the client-side. But, we are not using a server-side rendering feature.Possible solution
1 fix the existing code
2 Create another
Viewer
component named likeServerViewer
which doesn'trequire window instance.The text was updated successfully, but these errors were encountered: