You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have an angular application in which we are using powerbi-cilent-angular library for embedding power bi report. the application is running fine when we locally run it. When we are building SSR (Server side Rendering) package to deploy on the node. Package is getting successfully build but when we deploy it on node it does not work and gives below error.
If we build SSR (Server side Rendering) package after commenting out powerbi-cilent-angular library that package works on the node but then obviously embedding report functionality does not work.
So Does powerbi-cilent-angular library supports server side rendering?
The text was updated successfully, but these errors were encountered:
SarangNasare01
changed the title
Does this library supports server side rendering?
Does powerbi-cilent-angular library supports server side rendering?
Sep 1, 2023
The powerbi-cilent-angular library doesn't support server-side rendering, this library relies on window reference, which cannot be used in server-side rendering.
There are few potential solution for addressing this issue:
Add a condition to check if window object exists before using the code. But it will skip the line of codes which relies on window object.
Another approach will be to use dynamic import or lazy loading. It will make sure that the code is executed only in the browser, where window object is present.
We have an angular application in which we are using powerbi-cilent-angular library for embedding power bi report. the application is running fine when we locally run it. When we are building SSR (Server side Rendering) package to deploy on the node. Package is getting successfully build but when we deploy it on node it does not work and gives below error.
If we build SSR (Server side Rendering) package after commenting out powerbi-cilent-angular library that package works on the node but then obviously embedding report functionality does not work.
So Does powerbi-cilent-angular library supports server side rendering?
The text was updated successfully, but these errors were encountered: