SpreadSheetsModule does not appear to be an NgModule class

Posted by: adam.chubbuck on 16 May 2023, 5:20 am EST

  • Posted 16 May 2023, 5:20 am EST

    Am I missing something?

    'SpreadSheetsModule' does not appear to be an NgModule class.(-996002)
    spreadSheets.module.d.ts(1, 22): This likely means that the library (@grapecity/spread-sheets-angular) which declares SpreadSheetsModule is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.
    SpreadJsNg.zip

  • Posted 16 May 2023, 5:21 am EST

    Angular CLI: 13.3.11
    Node: 16.13.2
    Package Manager: npm 8.1.2
    OS: win32 x64
    
    Angular: 13.3.12
    ... animations, common, compiler, compiler-cli, core, forms
    ... platform-browser, platform-browser-dynamic, router     
    
    Package                         Version
    ---------------------------------------------------------  
    @angular-devkit/architect       0.1303.11
    @angular-devkit/build-angular   13.3.11
    @angular-devkit/core            13.3.11
    @angular-devkit/schematics      13.3.11
    @angular/cli                    13.3.11
    @schematics/angular             13.3.11
    rxjs                            7.5.7
    typescript                      4.6.4
  • Posted 16 May 2023, 3:31 pm EST - Updated 16 May 2023, 3:37 pm EST

    Hi Adam,

    Thanks for sharing the Angular Sample with us. I run the sample and it was working fine at my end. It might happen that when you install the SpreadJS dependencies, it might give you the mentioned compiler warning.

    You could simple restart your IDE (like Visual Studio Code) after installing the SpreadJS Dependencies and it will just work fine. I just run your sample at my end and it was working fine without any complier warnings.

    You could refer to the attached images for reference.

    Please let me know if you still face any issues.

    Regards,

    Ankit

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels