Skip to content

"ReferenceError: window is not defined" when rendering server side #28

@darkbercislaw

Description

@darkbercislaw

Hi,

in the src/shared/locales.js the method getDefaultLocales assumes that window object is in scope, which is not true when rendering the component server side. Would it be possible to add an extra check for window object existence or solve it differently, so that there are no errors when rendering this awesome component server-side?

Thanks,
Robert

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions