Duplicated
Last Updated: 02 Dec 2024 13:02 by ADMIN
Andrew
Created on: 25 Nov 2024 17:07
Type: Bug Report
0
Error: Uncaught (in promise): TypeError: perspectiveManager.dispose is not a function

I'm using Angular 15 LTS

core.mjs:8400 ERROR Error: Uncaught (in promise): TypeError: perspectiveManager.dispose is not a function
TypeError: perspectiveManager.dispose is not a function
    at Object.dispose (telerikReportViewer.js:8692:32)
    at TelerikReportViewerComponent.ngOnDestroy (telerik-report-viewer.component.js:60:27)
    at executeOnDestroys (core.mjs:5976:32)
    at cleanUpView (core.mjs:5886:9)
    at destroyViewTree (core.mjs:5712:21)
    at destroyLView (core.mjs:5864:9)
    at RootViewRef.destroy (core.mjs:11804:9)
    at ComponentRef.destroy (core.mjs:12226:23)
    at RouterOutlet.deactivate (router.mjs:2624:28)
    at ActivateRoutes.deactivateRouteAndOutlet (router.mjs:2999:32)
    at Object.dispose (telerikReportViewer.js:8692:32)
    at TelerikReportViewerComponent.ngOnDestroy (telerik-report-viewer.component.js:60:27)
    at executeOnDestroys (core.mjs:5976:32)
    at cleanUpView (core.mjs:5886:9)
    at destroyViewTree (core.mjs:5712:21)
    at destroyLView (core.mjs:5864:9)
    at RootViewRef.destroy (core.mjs:11804:9)
    at ComponentRef.destroy (core.mjs:12226:23)
    at RouterOutlet.deactivate (router.mjs:2624:28)
    at ActivateRoutes.deactivateRouteAndOutlet (router.mjs:2999:32)
    at resolvePromise (zone.js:1255:35)
    at resolvePromise (zone.js:1209:21)
    at zone.js:1322:21
    at _ZoneDelegate.invokeTask (zone.js:450:35)
    at Object.onInvokeTask (core.mjs:24197:33)
    at _ZoneDelegate.invokeTask (zone.js:449:64)
    at Zone.runTask (zone.js:218:51)
    at drainMicroTaskQueue (zone.js:639:39)
    at ZoneTask.invokeTask [as invoke] (zone.js:536:25)
    at invokeTask (zone.js:1710:22)

This needs to be fixed ASAP, it's causing isues when the report page is being destroyed.

Duplicated
This item is a duplicate of an already existing item. You can find the original item here:
1 comment
ADMIN
Dimitar
Posted on: 02 Dec 2024 13:02

Hello Andrew,

Thank you for the provided information about the issue!

This is a known problem and there is an already existing public item for it - perspectiveManager.dispose is not a function error in Angular viewer.

I am afraid there is no workaround with the Angular report viewer because the issue occurs when the viewer component is destroyed on the ngOnDestroy event and that cannot be disabled:

However, you may try to integrate the HTML5 Report Viewer in the Angular application instead. For details on how to do that, you may have a look at the Displaying the Web Report Designer in Angular application - Telerik Reporting KB article and follow the steps that are related to the viewer component.

I hope that this will help. Please let me know if you have any questions.

Regards,
Dimitar
Progress Telerik

Stay tuned by visiting our roadmap and feedback portal pages, enjoy a smooth take-off with our Getting Started resources, or visit the free self-paced technical training at https://learn.telerik.com/.