I started the Syncfusion free trial a few weeks ago and recently purchased Essential Studio Enterprise Edition Binary with TestStudio. I wanted to add my license key to my JavaScript project, so I followed the steps here to register a license key in Windows using an environment variable. I ran the npx syncfusion-license activate command from the terminal in Visual Studio Code, and there was a message telling me the license was imported successfully.
I ran npm start and opened up my web page, but still saw the banner with error message that it was built with a trial version. I looked at the troubleshooting page but that was not too helpful.
In my package.json dependencies I have:
I noticed if I remove the license variable and try activating the license it still says it was imported successfully.
Any ideas to troubleshoot what is going on?
Hi Derek,
Greetings from Syncfusion support,
We have validated your reported query along with your provided details, but we are unable to replicate any issues. And we suspect that this issue might raise due to duplicate packages in your project, we suggest you to remove the duplicate packages. Kindly follow the below steps to remove the duplicate packages and this issue will be resolved. For your convenience we have attached the sample, please refer to the sample.
1. Delete the @Syncfusion folder from node_modules and the package-lock.json file from the root folder.
2. Update our packages to the latest version (all packages should be upgraded to 20.*).
3. Run the ‘’npm install” command to install the packages.
We have introduced the license registration through npx command in the volume 2 2022 release i.e.(v20.2.36). So if you are using the packages below v20.2.36 then registering the license through the npx command will not work. Please upgrade your packages to the latest version to avoid these issue.
Please find the below details to register the license key using the npx command,
Register the license key with the environment variable
|
npx syncfusion-license activate |
Please refer to the below sample link.
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/my-npxLicensing1138111986.zip
Please refer the below documentation for registering the license key using Environmental variable,
Please get back to us if you have any queries.
Regards,
Theveshwar