Posted 16 March 2022, 5:35 pm EST
Hello,
I have a problem with compiling DataViewJS in my Angular 11 application.
- I created new application using angular cli v 11.2.18:
ng new test-app
- I added dependency to dataViewJS:
npm install @grapecity/dataviews.angular
- I modified app.module.ts:
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
[b]import { DataViewModule } from '@grapecity/dataviews.angular';
[/b]
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
[b] DataViewModule,[/b]
BrowserModule,
AppRoutingModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
- I tried to compile the application:
ng build
- 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)