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


6 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



RB Régis BOURGEOIS May 2, 2025 09:34 AM UTC

Hi,

I update Syncfusion package to latest release 29.1.40. The problem still exists.

I'm using ViteJs release 4.4.1


Any issue ?


Best Regards,




VS Venkada Subramanian Durai Syncfusion Team May 5, 2025 11:55 AM UTC

Hi Régis BOURGEOIS,


We were unable to reproduce the issue you reported. For your reference, we have attached a sample.

Kindly modify the sample to replicate the issue you are facing and also share the replication steps.

We ran the PDF Viewer using the attached sample with the following commands:

  • npm i – installs the project dependencies
  • npm run build – builds the project
  • npm run preview – starts a local preview server to run the application

 

Kindly confirm whether you followed the same steps. If not, please share the steps you used to replicate the issue.

This will help us provide a more accurate and effective solution to your problem.

 

Sample with vite configuration


Regards,

Venkada Subramanian Durai


Loader.
Up arrow icon