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

node prerender.js Chart is not defined #84

Closed
tuanuvt001 opened this issue Apr 23, 2019 · 2 comments
Closed

node prerender.js Chart is not defined #84

tuanuvt001 opened this issue Apr 23, 2019 · 2 comments

Comments

@tuanuvt001
Copy link

I use Ng2-chart and build ssr return :
Chart is not defined
at eval (webpack:///./node_modules/ng2-charts/fesm5/ng2-charts.js?:1041:15)

How I fix this?

@Gorniv
Copy link
Member

Gorniv commented Apr 26, 2019

Hi.
You can try global['CSS'] = null; like CSS
or mock like mock-server-browser

@Gorniv Gorniv closed this as completed Apr 26, 2019
@tuanuvt001
Copy link
Author

Hi.
You can try global['CSS'] = null; like CSS
or mock like mock-server-browser

Thanks! I did that.

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

2 participants