Open firegreen opened 7 months ago
I've also tried to use Component Outlet to dynamically load the component only if it's on the browser but I've got this error:
ngAfterViewInit(): void {
if (isPlatformBrowser(this.platformId)) {
this.echarts_component = NgxEchartsDirective;
this.echarts_inputs = {
options: this.chartOption,
chartInit: this.onChartInit,
loading: this.isLoading
}
}
}
ASSERTION ERROR: Provided Component class doesn't contain Component definition. Please check whether provided class has @Component decorator
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 available here is the htmland the ts component
Is there a way to fix that ?
Thanks.