score:0
The problem could be with Ivy compiler, in Angular AOT compilation Ivy is used by default. Try to disable Ivy in tsconfig.json:
{
"angularCompilerOptions": {
"enableIvy": false
}
}
score:0
In my case, the issue was that I try to declare component in different place then I created it, in the different module different folder. So you need to add module near your component, add this component into created module, then in the module where you tried to declare your component just import created module which contains required component.
Answer found here: https://github.com/angular/angular/issues/37047#issuecomment-634226777
score:13
You should only import the module in imports, not declare any specific component in declarations:
@NgModule({
declarations: [
AppComponent,
],
imports: [
BrowserModule,
HighchartsChartModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Source: stackoverflow.com
Related Query
- error NG6001: Cannot declare 'Highchar tsChartComponent' in an NgModule as it's not a part of the current compilation
- ERROR TypeError: Cannot set property 'proceed' of undefined
- ERROR TypeError: Cannot read property '0' of undefined in angular-highcharts
- HighCharts Stock Chart error code 18
- c# WPF Webbrowser with Highchart, Javascript from external source not working "An error has occurred in the script on this page"
- Directive cannot replace variable in template: Syntax Error
- Highstock charts give "Uncaught TypeError: Cannot read property 'addPoint' of undefined" error
- Strange character in the Highstock source code
- Uncaught TypeError: Cannot read property '0' of undefined javascript error and with highcharts
- Highchart redraw is throwing error Uncaught TypeError: Cannot read property 'length' of undefined(…)
- Highcharts/Highmaps Uncaught TypeError: Cannot read property '0' of undefined error
- Highchart React not rendering heat map after refresh its throwing error
- I am getting error on highcharts. like "ERROR TypeError: Cannot read property 'series' of undefined"
- I'm getting this error when fly over the chart: TypeError: Cannot read property 'lineWidth' of undefined
- Error: Data source must be a URL for refresh | console error | javascript | Highcharts
- Json to Chart using highchart export server with Node js module its throw error
- Error in render: "TypeError: Cannot read property 'seriesNames' of undefined"
- ERROR Error: Cannot set property 'text' of undefined
- JS HighCharts.js Pie data undefined error in code
- Plot series that cannot be sorted avoiding Highcharts error 15
- How do I rotate my HighCharts bar chart so its vertical, not horizontal?
- Highcharts 3 cannot render more than 1000 points in one series
- How can I fix Highcharts error #13?
- Displaying Persian dates in highchart from its corresponding Georgian date
- Highcharts Error #16: charts not showing on the same page
- Getting error while using highcharts in Angular 7
- Highcharts.js will not render the chart, it says error "Cannot read property 'series' of undefined"
- highcharts always console error ablout bubble_compiled.js?
- Highcharts error 15
- JavaScript error when using Highcharts
More Query from same tag
- Parsing jQuery XML object into Highcharts
- change the default distance in between the parallel axis in highchart
- Highcharts: Fade other columns when mouse over one column
- how to pass response data inside HighChart using angularjs
- Highcharts php data
- Pie Chart Custom Legend
- How to draw a Horizontal line using Highcharts DotNet C#
- How can i keep the color the same in highcharts
- Set column width depending on max datalabel value
- Highcharts - CUSTOM DATA LABELS in line series, are disappearing on window resize
- How to programatically hide a tooltip in highcharts?
- Highcharts markers on legend and hover ONLY
- Highcharts not working after jquery upgrade
- Highcharts rose diagram with json
- Highcharts use series labels as x-axis categories
- Highcharts - xAxis showing every other year
- Network diagram meets Sankey chart
- Remove Tooltip in Synchronized Charts, When user leaves the chart area
- Highcharts with live data: align chart on left side
- Create a Heatmap with Grouped Categories using Highcharts
- jQuery datepicker with Highstocks / Highcharts
- Highcharts remove space around boxplot
- First tick on min and last tick on max
- Highchart Scrollbar position
- Change HighStock chart label on changing rangeselector button
- Changing value of variable in Highcharts selection event in angular
- Draw only part of data in Highcharts
- Highcharts Tootip in wrong location for multiple x axis
- Highcharts with PHP var
- Highcharts customization PHP/MySQL