cebor / angular-highcharts

Highcharts directive for Angular
MIT License
215 stars 64 forks source link

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

Open slacker07 opened 4 years ago

slacker07 commented 4 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 }