Registered and imported license succesfully, but license error banner still appears

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:

"@syncfusion/ej2-base": "20.2.36"


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?


1 Reply

TJ Theveshwar Jayakumar Syncfusion Team July 12, 2022 01:30 PM UTC

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


  1. 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.


  1. Once set the SYNCFUSION_LICENSE environment variable, restart the IDE (e.g. Visual Studio Code) or application terminal (i.e. Command Prompt) before using the license activation command.


  1. Open the command prompt in the application root directory and activate the license key by using the below command,

 

npx syncfusion-license activate

  1. Once the Syncfusion license key is activated, the following console message will appear.
    License message:
    (INFO) Syncfusion License imported successfully.
  2. Now run the application. If you are facing a license validation error, refer to this link to resolve it. Also, find the most frequent license registration questions from this link.

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,


Link: https://ej2.syncfusion.com/documentation/licensing/license-key-registration/#register-the-license-key-with-the-environment-variable


Please get back to us if you have any queries.


Regards,

Theveshwar



Loader.
Up arrow icon