cebor / angular-highcharts

Highcharts directive for Angular
MIT License
213 stars 63 forks source link

Angular universal TypeError: Cannot read property 'parts/Chart.js' of undefined #354

Open slacker07 opened 3 years ago

slacker07 commented 3 years ago

When I switch project to angular universal, I get this error. ERROR { Error: Uncaught (in promise): TypeError: Cannot read property 'parts/Chart.js' of undefined

I already wrapped chart based codes inside platform checking. But still face the issue.

if (isPlatformBrowser(this.platformId)) { //....chart code }