Title: NextJS SSR issue fixed by 0mBudsMan · Pull Request #386 · microsoft/PowerBI-JavaScript · GitHub
Open Graph Title: NextJS SSR issue fixed by 0mBudsMan · Pull Request #386 · microsoft/PowerBI-JavaScript
X Title: NextJS SSR issue fixed by 0mBudsMan · Pull Request #386 · microsoft/PowerBI-JavaScript
Description: The code here uses window object of JS in some places, which is not defined in SSR frameworks like NextJSm which could not be solved on client side by using common solutions like lazy loading and dynamic imports. Here, I've fixed the issue by replacing window object attributes (crpyo and self) by a third party npm library to prevent any issues in nextJS integration. Please note that many libraries like powerbi-client-react uses this as dependency, which may cause problems in integration with nextJS. There are many solutions on stack overlflow regarding this error: Reference Error: self is not defined, but having personally tried all of them, none of it seemed to work
Open Graph Description: The code here uses window object of JS in some places, which is not defined in SSR frameworks like NextJSm which could not be solved on client side by using common solutions like lazy loading and d...
X Description: The code here uses window object of JS in some places, which is not defined in SSR frameworks like NextJSm which could not be solved on client side by using common solutions like lazy loading and d...
Opengraph URL: https://github.com/microsoft/PowerBI-JavaScript/pull/386
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:adb6f897-bee3-0d21-2686-5410625f9e54 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 95B4:1BBE0B:445F613:58BB390:6974F888 |
| html-safe-nonce | ed97b6ee455158340a61bcc3bdc337fe82a0f21dc2110de97f61d4506c3e274c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NUI0OjFCQkUwQjo0NDVGNjEzOjU4QkIzOTA6Njk3NEY4ODgiLCJ2aXNpdG9yX2lkIjoiMTM3NTUwNzg0NzE4ODkwNDA3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 728672cce4769885e6973b407dc912300878c21d00bfa679c799b470ecabba5a |
| hovercard-subject-tag | pull_request:1782845306 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/microsoft/PowerBI-JavaScript/pull/386/files |
| twitter:image | https://avatars.githubusercontent.com/u/128999558?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/128999558?s=400&v=4 |
| og:image:alt | The code here uses window object of JS in some places, which is not defined in SSR frameworks like NextJSm which could not be solved on client side by using common solutions like lazy loading and d... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/microsoft/PowerBI-JavaScript git https://github.com/microsoft/PowerBI-JavaScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 43329338 |
| octolytics-dimension-repository_nwo | microsoft/PowerBI-JavaScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 43329338 |
| octolytics-dimension-repository_network_root_nwo | microsoft/PowerBI-JavaScript |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width