Failed to compile in Angular 11 application

Posted by: dominik.piber on 16 March 2022, 8:35 am EST

  • Posted 16 March 2022, 8:35 am EST

    Hello,

    I have a problem with compiling DataViewJS in my Angular 11 application.

    1. I created new application using angular cli v 11.2.18:
    ng new test-app


    2. I added dependency to dataViewJS:
    npm install @grapecity/dataviews.angular


    3. I modified app.module.ts:
    import { NgModule } from '@angular/core';
    import { BrowserModule } from '@angular/platform-browser';
    import { DataViewModule } from '@grapecity/dataviews.angular';

    import { AppRoutingModule } from './app-routing.module';
    import { AppComponent } from './app.component';

    @NgModule({
    declarations: [
    AppComponent
    ],
    imports: [
    DataViewModule,
    BrowserModule,
    AppRoutingModule
    ],
    providers: [],
    bootstrap: [AppComponent]
    })
    export class AppModule { }


    4. I tried to compile the application:
    ng build


    5. Compilation fails with error:
    Symbol DataViewModule declared in D:/_Instalki/Angular/test-app/node_modules/@grapecity/dataviews.angular/dist/index.d.ts is not exported from @grapecity/dataviews.angular (import into D:/_Instalki/Angular/test-app/src/app/app.module.ts)
  • Replied 20 March 2022, 5:19 pm EST

    Hi,

    Thanks for the detailed steps. We are able to replicate the issue at our end hence we have escalated this issue to the concerned team for further investigation. We will update you regarding this as we get any information from the team. The internal ID for this issue will be JSVIEW-717.


    Regards,
    Avinash
Need extra support?

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

Learn More

Forum Channels