Prerendering of views and window object missing? #551

Closed
opened 2025-08-09 17:16:44 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @darewreck54 on 7/25/2017

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

*Originally created by @darewreck54 on 7/25/2017* 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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#551
No description provided.