Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
slacker07 opened this issue Oct 14, 2020 · 0 comments

Comments

@slacker07
Copy link

slacker07 commented Oct 14, 2020

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 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant