Troubleshooting shadcncraft Registry

Solutions for common issues when installing or configuring the @shadcncraft registry for React components and blocks.

PreviousNext

This guide covers the most common issues when installing components from the shadcncraft private registry (@shadcncraft) using the shadcn CLI.

If you have not yet configured the registry, start with the installation guide.

1. Missing license key

Error message

Missing license key. Provide a valid license key.

Cause

This happens when the request to the registry does not include the X-License-Key header. Common reasons:

  • SHADCNCRAFT_LICENSE_KEY environment variable is missing.
  • Environment variable is empty
  • Incorrect components.json headers.

How to fix it

1. Verify environment variable

Ensure your .env or .env.local file in the project root contains:

.env
SHADCNCRAFT_LICENSE_KEY="your_license_key"

2. Verify components.json registry configuration

Make sure the @shadcncraft entry is present and uses the environment variable in the header:

components.json
"registries": {
    "@shadcncraft": {
      "url": "https://shadcncraft.com/r/{name}",
      "headers": {
        "X-License-Key": "${SHADCNCRAFT_LICENSE_KEY}"
      }
    }
  }

2. Invalid license key

Error message

Invalid license key. Provide a valid license key.

Cause

The license key was sent to the registry, but it does not have the required SHADCNCRAFT prefix. Common reasons:

  • You are using an old license key from before the Polar migration.
  • The key is mistyped or incomplete.
  • The key belongs to a different product.

How to fix it

  • Ensure your license key starts with SHADCNCRAFT.
  • If you previously purchased the Pro React shadcn/ui Kit and have an old license key, you can access your new license from the Polar Portal using the same email used to purchase the product.
  • If you still can't see your new license in the Polar Portal, contact support.

3. Unknown registry "@shadcncraft"

CLI output

Unknown registry "@shadcncraft". Make sure it is defined in components.json as follows:
 
{
  "registries": {
    "@shadcncraft": "[URL_TO_REGISTRY]"
  }
}

Cause

Your components.json file is missing the @shadcncraft block inside the registries section, or the key is mis-typed.

How to fix it

1. Add the complete configuration to components.json

components.json
"registries": {
  "@shadcncraft": {
    "url": "https://shadcncraft.com/r/{name}",
    "headers": {
      "X-License-Key": "${SHADCNCRAFT_LICENSE_KEY}"
    }
  }
}

2. Confirm the registry key

  • The registry key must be exactly @shadcncraft.
  • Do not omit the @ prefix and do not change the name.

4. Invalid registry configuration

Error message

Invalid configuration found in components.json. Invalid configuration in components.json.

Common causes

Missing @ prefix

// ❌ Incorrect
"registries": {
  "shadcncraft": { ... }
}
 
// ✅ Correct
"registries": {
  "@shadcncraft": { ... }
}

Missing /{name} suffix in URL

// ❌ Incorrect
"url": "https://shadcncraft.com/r"
 
// ✅ Correct
"url": "https://shadcncraft.com/r/{name}"

How to fix it

Use the exact recommended configuration and validate your JSON format:

components.json
"@shadcncraft": {
  "url": "https://shadcncraft.com/r/{name}",
  "headers": {
    "X-License-Key": "${SHADCNCRAFT_LICENSE_KEY}"
  }
}

5. CLI crashes during installation

Example CLI output

? The file button.tsx already exists. Would you like to overwrite? » (y/N) TypeError: Cannot read properties of undefined (reading 'toLowerCase')

Cause

The shadcn CLI crashed while prompting for confirmation (for example, when asking to overwrite an existing file). This is typically:

  • A bug or edge case in the shadcn CLI or an underlying library.
  • A terminal / shell glitch or interrupted prompt.
  • Not related to the shadcncraft registry itself.

How to fix it

  • Simply rerun the command.
$ pnpm dlx shadcn@latest add @shadcncraft/faqs-1

If the issue persists, reset your terminal and try again.

6. License key not found

Error message

License key not found. Please check your license key is correct.

Cause

The license key was sent but could not be found in our system. Common reasons:

  • Key is mistyped or contains extra spaces/characters.
  • Key was never issued or does not exist.
  • Key belongs to a different product or organization.

How to fix it

  • Confirm you are using the exact license key from your purchase email or Polar Portal.
  • Ensure there are no extra spaces, quotes, or hidden characters.
  • Double-check that the key was issued for the Pro React shadcn/ui Kit.

7. Activation limit reached

Error message

License key activation limit reached. Deactivate an existing activation instance or upgrade your plan.

Cause

Your license key has a maximum number of allowed activations (devices/instances), and that limit has been reached.

How to fix it

  • Option 1: Deactivate an existing activation instance from your Polar Portal.
  • Option 2: Upgrade your plan to increase the activation limit.
  • Option 3: Contact support for assistance.

8. License key revoked or not granted

Error message

Your license key has been revoked or has not been granted. Please contact support.

Cause

Your license key exists, but the associated benefit grant has been revoked or was never granted. Common reasons:

  • Purchase was refunded.
  • Benefit was manually revoked.

How to fix it

  • Contact support to clarify the status of your license.
  • If you refunded and repurchased, ensure you are using the new license key.

9. License key revoked

Error message

This license key has been revoked. Please contact support.

Cause

The license key has been explicitly revoked in Polar. This typically happens after a refund or policy violation.

How to fix it

  • Contact support to understand why your license was revoked.
  • If eligible, request a new license key.

10. License key disabled

Error message

This license key has been disabled. Please contact support.

Cause

The license key has been disabled and is no longer valid for use.

How to fix it

  • Contact support to understand why your license was disabled.
  • If the issue is resolved, request re-enabling or a new license key.

11. Activation failed

Error message

Failed to activate license. Please try again later.

or

Failed to activate license. Please try again or contact support.

Cause

The license activation process failed unexpectedly. This could be a temporary issue with the activation service.

How to fix it

  • Wait a few minutes and try again.
  • If the issue persists, contact support with your license key (masked) and the error details.

12. Internal server error

Error message

An unexpected error occurred while validating your license key.

or

Server configuration error. Please contact support.

Cause

An unexpected error occurred on the server side while processing your request.

How to fix it

  • Wait a few minutes and try again.
  • If the issue persists, contact support with details about the error and the command you were running.

Still having trouble? Reach out to us

SBIOTJ

Join 3,000+ builders shipping with shadcncraft

Design and assemble full pages faster with production-ready blocks built for real products.

  • Production-ready blocks and components
  • Clean React and Tailwind parity
  • Built for SaaS, marketing, and ecommerce teams
Get the design system
Join Now CTA

Real support from the team behind shadcncraft

Get help within 24 hours from the people who build and maintain the system.

Email
Prefer a direct line? Send us a message and we'll get back to you as soon as possible.
Discord
Get quick support, share feedback, or connect with other builders.
Feedback
Got something to say about anything shadcncraft? We'd love to hear it.