Uncaught TypeError: Object prototype may only be an Object or null: undefined at setPrototypeOf

I have an issue after building on Dev (npm run build) and test on ./dist/, Diagram not working and show `Uncaught TypeError: Object prototype may only be an Object or null: undefined at setPrototypeOf`, on Local It works very well, I don't know what happened to me, please help me


Attachment: image_8ba7ee19.zip

3 Replies

AR Aravind Ravi Syncfusion Team April 7, 2020 12:55 PM UTC

Hi Duynguyen, 
 
We are unable to reproduce the reported issue at our end. When try npm run build in our app we does not face any error. We have attached a sample for your reference. Please find the sample in below link 
 
 
In case if the issue still replicates, please modify the above sample illustrating issue or video demonstration of the issue which would help us to proceed further. 
 
Regards 
Aravind Ravi 



NG nirmal genji May 18, 2021 01:29 PM UTC

I have tried the same with Vue3 for PDF Viewer. Getting the same error.

"component-base.js?507b:6 Uncaught TypeError: Object prototype may only be an Object or null: undefined
    at setPrototypeOf"



GG Gowtham Gunashekar Syncfusion Team May 19, 2021 03:05 PM UTC

Hi Nirmal, 
We have created a sample with the below guidelines of the getting started documentation and perform the npm run build and generated build. we found its working fine. We cannot able to replicate the reported issue at our end. We request you to share us more details of your requirement. Please explain your exact scenario of your application with diagram and PDF viewer or share us the stack trace or video demonstration of the issue. If possible please try to replicate the reported issue at shared sample that will help us to serve you better. 
Regards,  
Gowtham    


Loader.
Up arrow icon