error in built production

Hello, i'm using several components such treegrid, file manager and pdf viewer in release 27.2.5.

All works fine except pdf viewer after building production release of my project.

I'm using Vite. Js to build chunks files. When i try to load React pdf viewer component, i got an error like 's in not a function.... '. 

I think it's a problem of Vite config.

Could you help me please. 

Thanks and Best Regards


4 Replies

SK Sathiyaseelan Kannigaraj Syncfusion Team March 21, 2025 12:15 PM UTC

Hi Régis BOURGEOIS,

Thank you for reaching out to us. There was an issue with the Syncfusion package version V27.2.5 in the Vite.js environment, but it has been fixed in version V28.1.41. Please update to the latest package version to resolve this issue.  

We have provided the release details and a sample for your reference. Kindly check the sample and confirm if you are still experiencing any issues. If the issue persists, please provide a modified sample or a demo video of the problem so we can replicate it and provide a solution.

Sample with vite configuration


Release notes with vite issue fix
 


Regards,
Sathiyaseelan K



RB Régis BOURGEOIS March 21, 2025 01:14 PM UTC

Hello, thanks for your reply. Today I'm using à free licence and m'y key was générale for release 27.Can i have à New licence key for r28 ? 

Best Regards



RB Régis BOURGEOIS March 24, 2025 08:26 AM UTC

Hello, I updated the ej2 react pdfviewer and other components to release 28.x.x (latest). Still have the same issue : 's in not a function...'



SK Sathiyaseelan Kannigaraj Syncfusion Team March 24, 2025 02:37 PM UTC

Hi Régis BOURGEOIS,

Thank you for the update. Please confirm whether the issue occurred with the sample we provided. If the issue is specific to your project, kindly modify the sample and share it along with the steps to reproduce the issue. This will help us replicate the problem and provide an appropriate solution.

Sample with vite configuration
 


Regards,
Sathiyaseelan K


Loader.
Up arrow icon