Unexpected "TelerikReportViewerComponent" found in the "declarations" array of the "TelerikReportingModule" NgModule

0 Answers 29 Views
Report Viewer - Angular
Adrian
Top achievements
Rank 1
Iron
Adrian asked on 06 Oct 2025, 01:09 PM

I am attempting to upgrade TelerikReportViewerComponent from v21 to v22+ and am getting this error after build during the runtime:

Unexpected "TelerikReportViewerComponent" found in the "declarations" array of the "TelerikReportingModule" NgModule, "TelerikReportViewerComponent" is marked as standalone and can't be declared in any NgModule - did you intend to import it instead (by adding it to the "imports" array)?

Angular version: 19.2.8
Angular Kendo version: 18.5.2

It is imported via the app module and working in v21:
import { TelerikReportingModule } from '@progress/telerik-angular-report-viewer';
imports: [ TelerikReportingModule ]

Petar
Telerik team
commented on 09 Oct 2025, 07:50 AM

Hello Adrian,

Thank you for providing the details.

I tried to reproduce the error locally in the `html5-angular-report-viewer-example` project (which is installed by default with the product in the `C:\Program Files (x86)\Progress\Telerik Reporting <REPORTING_VERSION>\Examples\Angular` folder). However, on my end, everything appears to be working as expected.

For your reference, I am attaching the example project. You can start it through `npm run start-angular`, install the compatible `@progress/telerik-angular-report-viewer` version, and set the `serviceUrl` to point to your own REST service.

Could you please review the attached project and let me know if I have missed something? You may also consider modifying the attached demo project and sending it back for further investigation.

Thank you, and I am looking forward to your reply!

Regards,
Petar
Progress Telerik

No answers yet. Maybe you can help?

Tags
Report Viewer - Angular
Asked by
Adrian
Top achievements
Rank 1
Iron
Share this question
or