Licence registration via text file and npx command not working with ng serve

Hello,

I am following the docs to register the licence via text file and npx command https://ej2.syncfusion.com/angular/documentation/licensing/license-key-registration/#register-the-license-key-with-the-license-file

It seems to work when I do the ng build and serve the dist folder.

But when trying it during development with ng serve I always get the license validation error. 

Any ideas what I can do that it also works with the ng serve command?

Angular version: 14.1
npm version: 8.12.1
node version: 16.14.0


1 Reply 1 reply marked as answer

RS Ragunath Sukumaran Syncfusion Team August 18, 2022 10:24 AM UTC

Hi Michael,


Greeting from Syncfusion support,


We suspect that there might be duplicate packages or cache in your project. Please follow the below steps and this issue will be resolved.


1. Delete the @Syncfusion folder from node_modules and the package-lock.json file and .angular file from the root folder.

2. Clear npm cache at your end.

3. Update Syncfusion packages to the latest version (all packages should be upgrade to 20.2.*).

4. Run the ‘’npm install” command to install the node_modules.

5. Then follow the below documentation to register the license.


https://ej2.syncfusion.com/angular/documentation/licensing/license-key-registration/#register-syncfusion-license-key-using-the-npx-command


If you are still facing the same issue, please share us the issue reproducible angular sample, so that we can check and provide you a prompt solution.


Regards,

Ragunath S


Marked as answer
Loader.
Up arrow icon