ngx-ssrs-reportviewer icon indicating copy to clipboard operation
ngx-ssrs-reportviewer copied to clipboard

Unexpected token: name (ReportViewerComponent) when running command "npm start"

Open tharit-kit opened this issue 2 years ago • 0 comments

I got the following error after installed this package and import ReportViewerModule in app.module.ts :

ERROR in app.3c65f7fb04c200f44b2c.js from UglifyJs Unexpected token: name (ReportViewerComponent) [app.3c65f7fb04c200f44b2c.js:122241,6]

`import { BrowserModule } from '@angular/platform-browser'; import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; import { AppComponent } from './app.component'; import { ReportViewerModule } from 'ngx-ssrs-reportviewer';

@NgModule({ declarations: [ AppComponent ], imports: [ BrowserModule, ReportViewerModule <- (Problem here): If I remove this line, I can run "npm start" with no error! ], providers: [], bootstrap: [AppComponent],, schemas: [CUSTOM_ELEMENTS_SCHEMA] }) export class AppModule { }`

Anyway to fix this issue? Thank you in advance.

tharit-kit avatar Mar 07 '22 11:03 tharit-kit