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

Error with ɵɵComponentDeclaration in HighchartsChartComponent #361

Closed
narayansinghjai opened this issue Jul 5, 2023 · 1 comment
Closed

Comments

@narayansinghjai
Copy link

narayansinghjai commented Jul 5, 2023

I encountered an error while using the HighchartsChartComponent from the highcharts-angular library. The error occurs during the development server startup when running ng serve, preventing the project from running. The error is related to the ɵɵComponentDeclaration in the HighchartsChartComponent. Here are the updated details:

Error Message:
Error: node_modules/highcharts-angular/lib/highcharts-chart.component.d.ts:24:18 - error TS2707: Generic type 'ɵɵComponentDeclaration' requires between 7 and 8 type arguments.

24 static ɵcmp: i0.ɵɵComponentDeclaration<HighchartsChartComponent, "highcharts-chart", never, { "Highcharts": "Highcharts"; "constructorType": "constructorType"; "callbackFunction": "callbackFunction"; "oneToOne": "oneToOne"; "runOutsideAngular": "runOutsideAngular"; "options": "options"; "update": "update"; }, { "updateChange": "updateChange"; "chartInstance": "chartInstance"; }, never, never, false, never>;

Expected behavior
The project should build successfully without any errors related to ɵɵComponentDeclaration.

Steps to recreate the problem
Create a new Angular project.
Install the highcharts-angular library using npm or yarn.
Import the HighchartsChartmodule
Attempt to build the project using ng build or ng serve.

version used
angular =14.2.12
node =14.20.0
npm =8.19.1
angular/cli =14.2.10
Highcharts =^11.1.0
typescript = 4.6.2

kindly provide solution for the above error @karolkolodziej

@karolkolodziej
Copy link
Contributor

Hi @narayansinghjai!
Please for Angular version 14 use highcharts-angular in version 3.0.0.

More information here: #345

@karolkolodziej karolkolodziej closed this as not planned Won't fix, can't repro, duplicate, stale Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants