Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Comments

window should not be defined during SSR#35

Open
ernestre wants to merge 1 commit intoreactjs:masterfrom
ernestre:master
Open

window should not be defined during SSR#35
ernestre wants to merge 1 commit intoreactjs:masterfrom
ernestre:master

Conversation

@ernestre
Copy link

Some react libraries render their components differently if the window object is defined. Currently if the window object is unefined, this is assigned to the window, which is not the actual window object. This causes errors like these :

webpack-internal:///643:57: TypeError: Cannot read property 'userAgent' of undefined

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant