# Troubleshooting Kendo UI License Error, Resolving Console Warning, and Watermark on Components

## Environment

<table>
    <tbody>
	    <tr>
	    	<td>Product</td>
	    	<td>Progress® Kendo UI for Angular</td>
	    </tr>
    </tbody>
</table>

## Description

When upgrading your Kendo UI package or renewing the Kendo UI license, you could encounter issues with the license activation such as the console showing a warning that the license is expired, or there is a watermark on the components indicating an invalid license.

## Solution

To resolve the issue, follow these steps:

1. Confirm the expiration date of your license by referring to the [Downloading the License key](https://www.telerik.com/kendo-angular-ui/components/licensing#download-your-license-key-file) article. Download the key and replace the one that you are using.

2. Clear the Angular cache:

   ```sh macOS/Linux
   rm -rf .angular/cache
   ```

   ```sh Windows
   rmdir /s .angular\cache
   ```

   This will [clear the cache stored by Angular](https://www.telerik.com/kendo-angular-ui/components/licensing/faq#i-renewed-my-license-key-but-still-see-the-invalid-license-attributes-what-should-i-do).

3. If you're setting the license key as an environment variable, verify that there is no older version of the license key. Check both current and legacy variable names:

   **Current variable (2025 Q1+):**

   ```sh macOS/Linux
   echo $TELERIK_LICENSE
   ```

   ```sh Windows PowerShell
   Write-Output $env:TELERIK_LICENSE
   ```

   ```sh Windows Command Prompt
   echo %TELERIK_LICENSE%
   ```

   **Legacy variable (pre-2025 Q1):**

   ```sh macOS/Linux
   echo $KENDO_UI_LICENSE
   ```

   ```sh Windows PowerShell
   Write-Output $env:KENDO_UI_LICENSE
   ```

   ```sh Windows Command Prompt
   echo %KENDO_UI_LICENSE%
   ```

   The output should be empty for both variables. If not empty, delete the environment variables and reset them to the new license key using the current `TELERIK_LICENSE` variable name.

4. Delete the *node_modules* folder and the lock file (*package-lock.json*, *yarn.lock*, or *pnpm-lock.yaml* depending on your package manager).

5. Clear the package manager cache:

   ```sh NPM
   npm cache clean --force
   ```

   ```sh YARN
   yarn cache clean
   ```

6. Install all the packages:

   ```sh NPM
   npm install
   ```

   ```sh YARN
   yarn install
   ```

7. [Activate the license](https://www.telerik.com/kendo-angular-ui/components/licensing#install-or-update-the-license-key-file-in-your-project) and run the application.

## Notes

* Make sure you have a valid Kendo UI license before proceeding with the activation.
* If the issue persists, please [contact our support team](https://www.telerik.com/account/support-center/contact-us/technical-support) for further assistance.

## Suggested Link

* [Setting Up Your Kendo UI for Angular License Key](https://www.telerik.com/kendo-angular-ui/components/licensing)
* [License Activation Errors and Warnings](https://www.telerik.com/kendo-angular-ui/components/licensing/license-errors-and-warnings)
* [Adding the License Key to CI Services](https://www.telerik.com/kendo-angular-ui/components/licensing/ci-services)
* [Frequently Asked Questions about Your Kendo UI for Angular License Key](https://www.telerik.com/kendo-angular-ui/components/licensing/faq)
