Exports is undefined message

Hi, I'm getting a java script error on my page which says exports is undefined on a number of js files I'm including. As far as I can see, this is defined in ej.web.all.js but isn't anywhere else. I would like to use a subset of the controls in my page so I don't want to import all of ej.web.all.js

The following attachment is the error message in console.
Any help gratefully received. I'm using Syncfusion Javascript Community edition.



3 Replies

SK Shanmugaraja K Syncfusion Team August 10, 2018 10:04 AM UTC

Hi Andrew, 
 
Thank you for using Syncfusion products.  
 
#1: Getting a java script error on my page which says exports is undefined on several js files I'm including. As far as I can see, this is defined in ej.web.all.js but isn't anywhere else
 
Before we start to work with this, we would like to know the following details,  
 
1.   Which Syncfusion control that you are facing the issue?  
2.   Which Product version that you are currently using?  
3.   Which Platform that you are using?  
 
Could you please get back to us with the above details? So that we can sort out the issue and provide you the better solution quickly.  
 
#2: I would like to use a subset of the controls in my page, so I don't want to import all ej.web.all.js  
 
You can use the Custom Script Generator (CSG) tool to create a single file that packs together only the required scripts and CSS files together. Please check the below documentation link to use CSG.  
 
 
 
Could you please check the above link and get back to us if you need any further assistance on this?  
 
Regards,  
Shanmugaraja K 



AN Andrew August 10, 2018 04:41 PM UTC

This is perfect! Many thanks for this. How do I do a similar thing with EJ2 as I only need the Calendar control from this collection?

Andy.



JR John Rajaram Syncfusion Team August 13, 2018 10:25 AM UTC

Hi Andrew, 
Thank you for the update. 
In Essential JS 2 we suggest you to use the “Custom Resource Generator (CRG)” tool for getting the required Script and CSS files alone for Calendar component. Please refer the below online link for CRG. 
Let us know if you need further assistance on this. 
Regards, 
John R 


Loader.
Up arrow icon