CRG - minified downloads give Uncaught TypeError Object prototype may only be an Object or null- undefined

I have some trouble with downloads from https://crg.syncfusion.com/

Steps to reproduce:
Sign in the crg page
select the version (I tried 30.1.37 and 30.1.40.)
select all components
select 'Minified'
press Download
Fill out the download form
include the js from the received package in a simple HTML page (<script src="ej2.min.js"></script>)
Load the page in a browser
 - I get this error in the console.


Uncaught TypeError: Object prototype may only be an Object or null: undefined
    at setPrototypeOf (<anonymous>)
    at e (ej2.min.js:9:21492899)
    at ej2.min.js:9:21492960
    at ej2.min.js:9:21493148
    at ej2.min.js:9:21509559
    at ej2.min.js:9:31848390
    at ej2.min.js:9:31848394

Can you help with this issue?
Thanks


6 Replies

DA Deepika Arumugasamy Syncfusion Team July 31, 2025 06:36 PM UTC

Hi Ognyan Tsonev,

Greetings from Syncfusion!

 

We are pleased to announce that, in our Custom Resource Generator (CRG), we have resolved the reported issue, enabling you to select multiple components and download minified scripts without any issues. Additionally, if you choose all components with the minified option, you can utilize the overall CDN for scripts and styles, which includes all necessary resources. These can be downloaded directly from the CDN if preferred. For reference, please see the documentation for CDN usage: CRG for EJ2 JavaScript Common control | Syncfusion

Regards,
Deepika



OT Ognyan Tsonev August 29, 2025 12:15 PM UTC

Hi, 
After your previous comment (July 31, 2025 06:36 PM UTC) The crg was functional and minified versions I've downloaded worked properly. 

Currently I Have the same problem and the same error from my initial post.
I've tried only 30.2.7

UncaughtTypeError:Object prototype may only be an Objectornull:undefined
    at setPrototypeOf (<anonymous>)
    at e (ej2.min.js?19930_2:9:20967363)
    at ej2.min.js?19930_2:9:20967424
    at ej2.min.js?19930_2:9:20967612
    at ej2.min.js?19930_2:9:20984023
    at ej2.min.js?19930_2:9:31352865
    at ej2.min.js?19930_2:9:31352869


If I'm understanding correctly from the previous communication this is an issue with the build process on your side.

Would be great if we can use the CRG service. Thanks.



DA Deepika Arumugasamy Syncfusion Team September 2, 2025 11:55 AM UTC

Hi Ognyan Tsonev,

We apologize for the inconvenience.

 

We have thoroughly investigated your reported issue, where including the script from the downloaded package results in the error. We tested the scenario by selecting all components with the minified option in CRG for version 30.2.7, and the generated CDN link worked correctly. Additionally, we randomly selected multiple components and tested the minified scripts, which also functioned without issues. Unfortunately, we were unable to reproduce the error on our end.

To help us validate the issue further and provide a prompt solution, could you please share the following details:

  1. The specific list of components you selected in CRG for the download.
  2. Confirmation of whether you are using the minified or unminified version of the script.
  3. A minimal reproducible sample, if possible.

For your reference, we have attached a sample we tested, which includes the minified script from CRG and works as expected.

 

We are committed to resolving this issue promptly. Please provide the requested details at your earliest convenience. Thank you for your patience and cooperation.

Regards,

Deepika



Attachment: sample_e93b17dd.zip


OT Ognyan Tsonev September 3, 2025 07:59 AM UTC

Thank you for Your reply,
I've tried the sample you've provided. Indeed it doesn't have this problem, however I noted with that build, I get the 'trial version' message.

After that I tried to download a new version from the CRG and I get the same error as before. 
Here are the steps that i do:

  1. Open https://crg.syncfusion.com/
  2. Log-in with a valid account
  3. Click 'Import Settings' and select a json file from previous download. (please find the file attached to this message. Note that I've changed the emails in username and userMailId for security and privacy reasons.)
  4. Change the version to 30.2.7
  5. Check 'Minified'
  6. Click 'Download'
  7. Fill in the email
      - don't check the 'include lite theme'
  8. Click 'Generate'
  9. Wait for the email with a download link
  10. Download the archive.
  11. Replace the ej2.min.js and material.min.css files in the project, and test it.

I get the same error that is entirely from the ej2.min.js file

Uncaught TypeError: Object prototype may only be an Object or null: undefined
    at setPrototypeOf (<anonymous>)
    at e (ej2.min.js?21043:9:20967365)
    at ej2.min.js?21043:9:20967426
    at ej2.min.js?21043:9:20967614
    at ej2.min.js?21043:9:20984025
    at ej2.min.js?21043:9:31352867
    at ej2.min.js?21043:9:31352871


Let me add that this problem is not present if I don't check 'Minified'. Also I never tested it without being logged in with an licensed account, because this is the main reason to use the CRG for us, to get a licensed version.

I also tested the provided example with the ej2.min.js that I get from CRG and the error message is the same, only the char numbers in the trace are different.

I hope this will help you to get to the bottom of that issue


Attachment: import_184f2274.zip



DA Deepika Arumugasamy Syncfusion Team September 5, 2025 02:33 PM UTC

Hi Ognyan Tsonev,

We have thoroughly validated the issue from our end and successfully reproduced the reported issue. After careful analysis, we have identified it as a bug and have promptly logged a defect report on our end. It will be resolved in our upcoming patch release, scheduled on September 23, 2025.


You can track this bug's status in the below feedback.

Feedback: Need to resolve the undefined issue with minified scripts when downloading with imported settings i…


We appreciate your patience until then.

Regards,
Deepika




DA Deepika Arumugasamy Syncfusion Team September 24, 2025 01:42 PM UTC

Hi Ognyan Tsonev,

Thank you for your patience.

We’re glad to inform you that we have resolved the issue with the Custom Resource Generator (CRG) when using imported settings and minified scripts. You can now download and use the scripts without any issues at https://crg.syncfusion.com/.

 

If you have any further questions or need assistance, please don’t hesitate to reach out—we’re always here to help.

Regards,
Deepika

 



Loader.
Up arrow icon