angular-highcharts icon indicating copy to clipboard operation
angular-highcharts copied to clipboard

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

Open slacker07 opened this issue 5 years ago • 0 comments

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 }

slacker07 avatar Oct 14 '20 17:10 slacker07