Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Prerendering of views and window object missing? #1147

@darewreck54

Description

@darewreck54

Hi,

I'm currently trying to use powerbi-client library in my reactredux application. However, when I use it i get the following exception:

Exception: Call to Node module failed with error: Prerendering failed because of error: ReferenceError: window is not defined

I believe this is because it tries to preRender some of the views and the views depend on a library that utilize the window object, but the window object does not exist on the server side.

Is disabling the prerender feature the only way to get around this problem?
Any advice appreciated,
Thanks,
Derek

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