Kendo license activation failed for @progress/kendo-react-intl

1 Answer 269 Views
Licensing
Dide
Top achievements
Rank 2
Iron
Iron
Dide asked on 24 Jul 2024, 09:47 AM

I'm having a similar issue to https://www.telerik.com/forums/license-activation-failed-for-react-project

For my deployed app, I'm getting this error in the console:

License activation failed for @progress/kendo-react-intl
No license found.
See https://www.telerik.com/kendo-react-ui/components/my-license/ for more information.

I've tried to fix it by doing:

- remove node_modules and package.lock.json

- Make a new npm install and activation

but this hasn't fixed the issue. I don't see the warning locally, only after it has been deployed. I have the following in my azure pipeline:

stages:
- stage: Test
  displayName: Test
  jobs:
  - job: Test
    displayName: Perform tests
    steps:
    - task: NodeTool@0
      inputs:
        versionSpec: '18.x'
      displayName: 'Install Node.js'

    - script: |
        npm ci
      displayName: 'Install dependencies'
...
    
    - script: |
        npx kendo-ui-license activate
      displayName: "Activate Kendo UI License"

    - script: |
        npm run build
      displayName: 'Build'

and can see the activation working when running the pipeline:

(INFO) Kendo UI: KENDO_UI_LICENSE environment variable not set
(INFO) Kendo UI: Reading license from "/agent/_work/2/s/kendo-ui-license.txt"...
(INFO) Kendo UI: License imported successfully.
Any idea what could be wrong?
Dide
Top achievements
Rank 2
Iron
Iron
commented on 24 Jul 2024, 10:57 AM

Also tried adding it to our Dockerfile, but still getting the same warning:

# install dependencies
FROM node:18-alpine AS deps
# https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine
RUN apk add --no-cache libc6-compat
WORKDIR /app

COPY package*.json ./
COPY patches ./patches
RUN npm ci --audit=false


# build the source
FROM node:18-alpine AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .

# activate Kendo UI license
RUN npx kendo-ui-license activate --file kendo-ui-license.txt

RUN npm run build

1 Answer, 1 is accepted

Sort by
0
Accepted
Vessy
Telerik team
answered on 24 Jul 2024, 04:49 PM

Hello, Dide,

When licensing the KendoReact components in deployment you need to use KENDO_UI_LICENSE variable instead of licensing file and the license key must be present at build time (being part of the build process).

For an Azure Pipelines scenario your configuration could look like follows:

Please, give this suggestion a try and let me know if any further assistance on the matter will be needed.

Regards,
Vessy
Progress Telerik

Do you have a stake in the designеr-developer collaboration process? If so, take our survey to share your perspective and become part of this global research. You’ll be among the first to know once the results are out.
-> Start The State of Designer-Developer Collaboration Survey 2024

Tags
Licensing
Asked by
Dide
Top achievements
Rank 2
Iron
Iron
Answers by
Vessy
Telerik team
Share this question
or