Error with PDFViewer

1 Answer 71 Views
PDFViewer
Doug
Top achievements
Rank 1
Iron
Iron
Veteran
Doug asked on 16 Sep 2022, 08:26 PM

After updating to v3.6 I copied your demo code from here and pasted it into my blazor wasm project and I'm getting the error below. What do I need to do to resolve this?

Unhandled exception rendering component: Could not find 'TelerikBlazor.initPdfViewer' ('initPdfViewer' was undefined).

1 Answer, 1 is accepted

Sort by
0
Tsvetomir
Telerik team
answered on 21 Sep 2022, 11:48 AM

Hi, Doug,

The initPdfViewer method is actually a JavaScript function that comes with the new 3.6.0 version of the product. I suspect that the NuGet of the project has been updated, but the client assets are pointing to an older version that does not have the function of interest.

However, if you use a local copy of the client assets or a CDN, you need to update it. You can find more information in our documentation:

https://docs.telerik.com/blazor-ui/getting-started/what-you-need#client-assets

Let me know if the issue persists after the update.

Regards,
Tsvetomir
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
PDFViewer
Asked by
Doug
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Tsvetomir
Telerik team
Share this question
or