tycomo / ngx-ssrs-reportviewer

Simple Angular report viewer component for SQL Server Reporting Services
MIT License
52 stars 22 forks source link

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

Open tharit-kit opened 2 years ago

tharit-kit commented 2 years ago

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.