Skip to content

[Issue] Core API on a Server Side Rendering React App #158

@dokor

Description

@dokor

Hi,

We use version 1.21.0 of the Core SDK on a React app which has Server Side Rendering (SSR).
When rendering a page in SSR which uses your framework, we get the following error:

        if (!window.cordova)
        ^
ReferenceError: window is not defined

In SSR, window isn't defined anyway.
Do you have a solution to get around this problem?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions