PdfViewer error when using ej2.min.js from npm

Hi,

I've downloaded client side resources ej2.min.js from Syncfusion npm to use locally.
Version is 18.3.42. I've added nuget EJ2.AspNet.Core (18.3.0.42) and  EJ2.PdfViewer.AspNet.Core (18.3.0.42).

However when I load my page with pdfviewer it gave error:

constants.js:93 Uncaught TypeError: (void 0) is not a function
    at constants.js:93
    at constants.js:93
(anonymous) @ constants.js:93
(anonymous) @ constants.js:93
(index):92 Uncaught ReferenceError: ejs is not defined
    at (index):92

If I use CDN version of ej2.min.js, pdfviewer load correctly without error.

1 Reply 1 reply marked as answer

AA Akshaya Arivoli Syncfusion Team October 27, 2020 12:16 PM UTC

Hi RWEM,   
  
Thank you for contacting Syncfusion support.   
  
Based on the provided details we found that the invalid version is provided for the PDF Viewer, so the error occurs. Can you please try both client and server with latest version 18.3.0.44   
  

  
Please try it and revert us with more details about your issue, if you still have concerns. These details will be helpful for us to investigate further and assist you better.   
   

Regards,  
Akshaya  


Marked as answer
Loader.
Up arrow icon