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
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
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