Troubleshooting shadcncraft Blocks for JSON Render

Fixes for install errors, unstyled blocks, sample content and unbound buttons with @shadcncraft/json-render-pro.
PreviousNext

Install fails with 401

The registry didn't receive a valid key.

  • Check that SHADCNCRAFT_LICENSE_KEY is set in the shell or CI job that runs the install. If it's unset, npm sends the text ${SHADCNCRAFT_LICENSE_KEY} instead of your key.
  • License keys start with SHADCNCRAFT-. Copy yours from your purchase email or shadcncraft.com/licenses.
  • With pnpm 10 or later, the _authToken line must be in your user ~/.npmrc, not the project's. See Installation.
  • Run npm whoami --registry https://shadcncraft.com/api/npm/ to test the key on its own.

Install fails with 403

The key is recognised, but the license can't be used right now. The error message says why and links to where you can fix it. If it isn't clear, contact support.

npm reports ERESOLVE

npm refuses to install when a package you already have doesn't match a version the blocks need. Install the versions npx shadcncraft-json-render-pro deps <base>-<style> prints. The package is built and tested against JSON Render 0.21.3, so keep @json-render/core and @json-render/react at that version.

Blocks render unstyled

Import your style's stylesheet once, for example @shadcncraft/json-render-pro/base-nova/styles.css. It must match the style you installed.

Borders are dark or the page has a white frame

The blocks expect Tailwind's reset and shadcn's base styles, which every shadcn app already has. In an app without Tailwind, import @shadcncraft/json-render-pro/preflight.css before the stylesheet.

Colours or fonts look wrong

The blocks use your app's shadcn theme variables. If you don't have a shadcn theme, import @shadcncraft/json-render-pro/theme.css, and install and import the Geist font it uses (@fontsource-variable/geist).

A block shows placeholder text or images

A prop that's left out renders the block's sample content, such as "Acme Inc" copy and sample images. Run npx shadcncraft-json-render-pro check page.json: it lists every prop still showing sample content. Set the prop, or set it to "" to hide it where the block allows that.

A button does nothing or is disabled

Its event isn't bound to an action, or the action isn't registered in your JSONUIProvider handlers. Run check with your action names, and it reports both cases:

$ pnpm dlx shadcncraft-json-render-pro check page.json --actions subscribe,startTrial

The agent invents blocks or props

Install the agent skill (see Getting started) and copy it again after each upgrade. Run check on every document before rendering it: unknown blocks and props are errors.

Still stuck?

Contact support with the command you ran and the full error.

SBIOTJ

Join 16,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 full library
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.