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

Does angular-highcharts support universal/server side rendering #347

Open
jpspringall opened this issue Aug 1, 2020 · 1 comment
Open

Comments

@jpspringall
Copy link

More of question than an issue,

Just wondering if angular high-charts supports SSR?

When I try and run in SSR mode, I get the following error when trying to browse to a url:
TypeError: Cannot read property 'parts/Globals.js' of undefined

I suspect it may be related to something to do with the lack of window object.

Just wondering.

Cheers

James

@jpspringall
Copy link
Author

I have answered my own question

Yes it does

You just have to do the following, in your app.server.module.ts
use the following as your provider: providers: [{ provide: HIGHCHARTS_MODULES, useFactory: () => []}

Cheers

James

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