Hello I have a quesiton
We have licensed version of Syncfusion Comonents
I recently downloaded the charts components via NPM but when I am using the chart components I get a warning with a banner that I am using a 14 day trial. How do I get rid of the banner as we have fully paid License for 3 developers?
Do we have to register the developers when we do an nmp install the Chart Components ?
thanks
jawahar rajan
Developer at InvestX
Hi Jawahar,
Sorry for the delayed response,
Please contact your admin to assign a valid license to your account.
We have introduced license key validation for Essential JS2 platforms from the 2022 Volume 1 release. This licensing key validation will enforce the developer to register the valid licensing key in an application while referring to any of the latest packages, either from npm or CDN or build.
For generating and registering a license key please refer to the following documentation.
https://ej2.syncfusion.com/angular/documentation/licensing/license-key-generation/
https://ej2.syncfusion.com/angular/documentation/licensing/license-key-registration/
Please get back to us if you have any queries.
Regards,
Gokul
Hi,
I've created an account to try the trial license for Angular (javascript). The version that I can only pick is 20.2.0.36. However, there is no version 20.2.0.36 in npm. I tried using 20.2.36 from npm and called registerLicense() but I still get the license message. What am I missing?
Hi,
All good. Sorted it out. We are using module federation. Putting it in main.ts didn't work. Just had to find the entry point of the remote module.
Thanks.
Hi Robert,
We also have a way to register the license key using the npx command. If you are facing issues while registering license key in the main.ts file, we suggest you to register the license key using npx command. We have provide the support, registering the license key using npx command in the volume 2 2022 release (v20.2.0.36), so please upgrade your packages to latest version (v20.2.36), to utilize this support.
Please find the below details to register the license key using the npx command,
Generate the Syncfusion license key and register it through npx command in one of the following ways,
Note: If both the license text file and the environment variable are used for license registration, priority is set to the syncfusion-license.txt file. If you want to use the environment variable for license registration, then remove the license text file from the application.
Register the license key with the license file
The following steps show how to register the Syncfusion license key with the license text file.
“npx syncfusion-license activate”
Note: If you don't want to use the license text file in the application, refer to the below topic to register the license key with the environment variable
Register the license key with the environment variable
You can set the environment variable as SYNCFUSION_LICENSE in the system and paste the license key as a value. It can be used in all applications on your machine.
The following steps show how to set environment variables in different operating systems and register the Syncfusion license key.
Windows
“setx SYNCFUSION_LICENSE "license key" ”
Mac
“echo 'export SYNCFUSION_LICENSE="license key"' >> ~/.bash_profile”
“nano .bash_profile”
Linux
“export SYNCFUSION_LICENSE='license key'”
”npx syncfusion-license activate“
Please get back to us if you have any queries.
Regards,
Ragunath S