This repository has been archived by the owner on Nov 13, 2018. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
'window is not defined' error while SSR #1
Comments
@ikappas published 1.0.1 with the fix. |
@lifeiscontent The fix did not make it into dist |
@ikappas sorry about that! Just added a Let me know if it works for you. Just published 1.0.2 |
@lifeiscontent works like a charm! Thank you! 👍 |
@ikappas not sure if this simplifies your case, but I decided to use this instead of this lib: https://github.com/lifeiscontent/react-mutate-icon rather than dealing with loading SVGs, you can create a object with react components built from |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This following error is thrown while server side rendering the react app:
This can be easily fixed by changing:
with
See also:
webpack/react-starter#37 (comment)
tanem/react-svg#15
The text was updated successfully, but these errors were encountered: