Skip to content

ReferenceError: window is not defined #1

Closed
@kevinblanco

Description

Using a react app created with create-react-app trows the following error:

webpack:///./client/node_modules/react-icalendar-link/dist/index.es.js?:137
 var ua = window.navigator.userAgent;
 
[1] ReferenceError: window is not defined
[1]     at isIOSChrome (webpack:///./client/node_modules/react-icalendar-link/dist/index.es.js?:137:14)

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions