-
Notifications
You must be signed in to change notification settings - Fork 29
server side rendering #121
Comments
Actually, this happens in other places as well:
|
Needed this as well, basically the document just used for injecting style. |
If your using next.js, check out this blog building-universal-apps-with-nextjs |
I receive the same error, basically document is not defined using server side rendering. For example , failing on document : how can I solve this? I use an Angular2 app combined with asp.NET Javascript services. |
To solve this, you have to make sure to require this lib only in the client. In angular, I think you can require it on dom load. |
I'm trying to use this lib with an universal app, but it's throwing an exception here because document is undefined when it's a server side render. Can we add a check to see if document exists or perhaps only run this code inside the constructor?
The text was updated successfully, but these errors were encountered: