- Home
- Forum
- JavaScript - EJ 2
- CRG - minified downloads give Uncaught TypeError Object prototype may only be an Object or null- undefined
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
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
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.
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:
- The specific list of components you selected in CRG for the download.
- Confirmation of whether you are using the minified or unminified version of the script.
- 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
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:
- Open https://crg.syncfusion.com/
- Log-in with a valid account
- 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.)
- Change the version to 30.2.7
- Check 'Minified'
- Click 'Download'
- Fill in the email
- don't check the 'include lite theme' - Click 'Generate'
- Wait for the email with a download link
- Download the archive.
- 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
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
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
- 6 Replies
- 2 Participants
-
OT Ognyan Tsonev
- Jul 29, 2025 03:32 PM UTC
- Sep 24, 2025 01:42 PM UTC