Guides docs: all pages

Troubleshooting

Fixes for the most common problems when installing, running and deploying a kit.

npm install fails or warns about the engine

Check your Node version with node -v. The Next.js edition needs 20.9 or newer and the React + Vite edition needs 20.19 or newer. If you use nvm, run nvm install 22 and try again.

Port already in use

Another app is using the port. Stop it, or run on another port: npm run dev -- -p 3001 for Next.js, or npm run dev -- --port 5174 for Vite.

The host isn't sending unknown paths to index.html. Keep vercel.json (Vercel) or public/_redirects (Netlify and Cloudflare) in the project, or add try_files $uri /index.html; for nginx.

The page looks unstyled

Make sure globals.css is still imported (in app/layout.tsx or src/main.tsx) and that you didn't delete the Tailwind plugin from the PostCSS or Vite config.

Colors didn't change after editing the theme

Set the variables in both the light :root block and the .dark block of theme.css, and check you didn't hard-code a hex color in a component.

Type errors after connecting an API

Map your API's response to the kit's types with one small function instead of changing the types, as shown in each kit's Connect your API guide.

Static export fails on a detail page (Next.js)

A static export needs every detail page's ids at build time. Detail pages list theirs with generateStaticParams. If you load ids from your API, return them there, or deploy to a Node host instead.