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
Hi ngx-echarts team, I'm using ngx-echarts 17.1.0 with Angular 17.3.1
When I use a echart component, I meet the following error in the SSR service
ERROR ReferenceError: window is not defined
at _NgxEchartsDirective.ngOnInit (/root/workspace/takeawaste_exercice/client/node_modules/ngx-echarts/fesm2022/ngx-echarts.mjs:119:5)
because the window variable is not available
here is the html
The issue stems from the use of SSR, server does not have a window object. The only fix I was able to do was not use SSR. Not much we can do unless the author brings SSR support.
Hi ngx-echarts team, I'm using ngx-echarts 17.1.0 with Angular 17.3.1
When I use a echart component, I meet the following error in the SSR service
because the
window
variable is not availablehere is the html
and the ts component
Is there a way to fix that ?
Thanks.
The text was updated successfully, but these errors were encountered: