Integrate the Web Report Designer in Angular

0 Answers 5 Views
Report Designer - Web
Sergey
Top achievements
Rank 1
Sergey asked on 13 May 2025, 10:48 AM

Hello,

Few years ago, we have integrated your Web Report Designer into our angular application. However, once we updated to angular 18, when we use production build with aot, Report Designer fails to load with errors like 'Cannot read properties of null'. It works if we disable aot optimization, but that doubles the size of our scripts.

Do you have any advice?

Thank you,

Sergey

Petar
Telerik team
commented on 16 May 2025, 10:20 AM

Hello Sergey,

I attempted to reproduce the issue in an Angular 18 project, but everything appears to be functioning correctly on my end. Could you please provide a sample project that demonstrates the issue? If you have concerns about confidentiality, feel free to open a private support ticket.

I have also attached the sample project I used during my investigation. Please take a look at it, and if you prefer, you can modify it to reproduce the problem, then send it back for further investigation.

Thanks,
Petar
Progress Telerik

Sergey
Top achievements
Rank 1
commented on 16 May 2025, 07:55 PM

Hello Petar,

That did it, your sample project really helped! For a few years we've used OnInit to instantiate Report Designer. Once I switched to AfterViewInit, the problem went away.

Thank you!
Sergey

No answers yet. Maybe you can help?

Tags
Report Designer - Web
Asked by
Sergey
Top achievements
Rank 1
Share this question
or