Skip to content

Error NG6002: ‘GaugeChartModule’ does not appear to be an NgModule class in Angular 18 #101

@vikramtamboli

Description

@vikramtamboli

Description:

First of all, thank you very much for the awesome library!

I am encountering an issue while using angular-gauge-chart with Angular 18. The error message is as follows:

error NG6002: 'GaugeChartModule' does not appear to be an NgModule class.

GaugeChartModule,

node_modules/angular-gauge-chart/lib/gauge-chart.module.d.ts:1:22
1 export declare class GaugeChartModule {

This likely means that the library (angular-gauge-chart) which declares GaugeChartModule is not compatible with Angular Ivy. I have checked for newer versions of the library but the issue persists.

Steps to Reproduce:

Install angular-gauge-chart in an Angular 18 project.
Import GaugeChartModule in AppModule.
Run the application.

Expected Behavior: The application should compile without errors.

Actual Behavior: The application fails to compile with the error mentioned above.

Additional Context:

Angular Version: 18
Node Version: v18.20.4
angular-gauge-chart Version: [Your Library Version]
I would appreciate any guidance on resolving this issue. Is there a workaround or a specific library version compatible with Angular 18 and Ivy?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions