You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ERROR TypeError: Cannot read properties of undefined (reading 'Core/Globals.js') #372
import { CommonModule } from '@angular/common';
import { Component } from '@angular/core';
import { HighchartsChartModule } from 'highcharts-angular';
// import * as Highcharts from 'highcharts/highstock';
import Highcharts from 'highcharts';
import HC_Stock from 'highcharts/modules/stock';
HC_Stock(Highcharts);
ERROR TypeError: Cannot read properties of undefined (reading 'Core/Globals.js')
at HC_Stock (c:/Users/User/source/project/frontend/node_modules/highcharts/modules/stock.js:9:539)
at eval (c:/Users/User/source/project/frontend/projects/projects-landing-page/src/app/components/line-chart/line-chart.component.ts:7:1)
at async instantiateModule (file:///C:/Users/User/source/project/frontend/node_modules/vite/dist/node/chunks/dep-9A4-l-43.js:50861:9)
, can you please provide an example code that implements SSR in Angular version 17 using standalone components or how can i fix this ?
From Angular 17 SSR behaves differently than it used to with Angular Universal.
I've used the isBrowser flag instead of the isHighcharts, besides that it is business as usual.
Please see a standalone SSR component in the demo.
Internal note:
Let's improve the documentation and describe SSR in Angular 17.
Activity
karolkolodziej commentedon Feb 23, 2024
HI @borisdaev!
From Angular 17 SSR behaves differently than it used to with
Angular Universal.I've used the
isBrowserflag instead of theisHighcharts, besides that it is business as usual.Please see a standalone SSR component in the demo.
Internal note:
Let's improve the documentation and describe SSR in Angular 17.
borisdaev commentedon Feb 23, 2024
Thank you for the demo code.