Troubleshooting
Use this guide when Sonata does not install, build, render, or deploy as expected.Start with the first error in the terminal. Later errors are often side effects.
Quick Checklist
- Check Node.js version.
- Check pnpm version.
- Reinstall dependencies.
- Check
.env.local. - Restart the dev server.
- Read terminal logs.
- Read browser console logs.
- Run a production build.
pnpm Is Not Recognized
Install pnpm:
Port Is Already In Use
Use another port:Dependency Install Fails
Try:- Delete
node_modules. - Keep the lockfile unless update instructions say otherwise.
- Confirm Node.js 20 or newer.
- Confirm network access to the npm registry.
- Check whether a package version was changed manually.
Blank Page
Check:- Terminal logs.
- Browser console.
- Missing environment variables.
- Import errors.
- Client component errors.
- Invalid data in config files.
- Hydration mismatches.
- Build errors.
404 Page After Deployment
Check:- The route exists under
app/. - The deployment built the latest commit.
- The hosting platform is using Next.js.
- Links use the correct path.
- File and folder casing matches exactly.
Hydration Mismatch
Common causes:Date.now()rendered directly in JSX.Math.random()rendered directly in JSX.windowordocumentused outsideuseEffect.- Theme state differs between server and client.
useEffect.
Build Fails
Read the first real error. Common causes:- TypeScript error.
- Invalid import.
- Missing file.
- Client component missing
"use client". - Invalid MDX syntax.
- Missing environment variable.
- Case-sensitive path issue on Linux deployments.
TypeScript Error After Editing Data
Common causes:- Missing required field.
- Wrong field name.
- Wrong price or spec type.
- Duplicate ID where a unique ID is expected.
- A plan was added to the wrong tier shape.
Product Cards Do Not Update
Check the correct data file:game-hosting.ts.
Non-game product pages mostly use product-config.ts.
Billing URL Is Wrong
Check:siteConfig.billing.url plus a product path.
Also check:
- The billing base URL has the correct domain.
- Product suffix matches the billing panel route.
- Query parameters match the provider.
- Selected billing cycle is passed correctly.
Domain Lookup Fails
Domain lookup uses:- RDAP endpoint is unavailable.
- TLD has no public RDAP endpoint.
- Registry rate limit.
- Deployment platform blocks outbound requests.
- Domain is premium or reserved.
Stock Shows Unavailable
Check:PTERODACTYL_PANEL_URLPTERODACTYL_APP_KEY- API key permissions.
- Pterodactyl location IDs.
- Node and allocation state.
- API logs.
Status Page Does Not Load
Check:UPTIMEROBOT_API_KEY- UptimeRobot monitors.
- API route logs.
- Production environment variables.
Colors Look Wrong
Check::root and html.light if needed.
Button Shadows Are Too Strong
Tune:Border Beam Is Too Bright
Tune:MDX Does Not Render
Check frontmatter:- Invalid frontmatter.
- Unclosed JSX tag.
- Broken Markdown table.
- Raw
<or>outside code blocks. - Component not registered in MDX renderer.
Deployment Fails
Check:- Build command.
- Start command.
- Node.js version.
- Environment variables.
- Case-sensitive file paths.
- Platform logs.
Open Graph Preview Is Wrong
Check:lib/config/site.tsseo.ogImage- Image path under
public/ - Production URL.
- Platform preview cache.
License Issue
Sonata is under the Sonata Commercial License. Do not:- Resell.
- Redistribute.
- Leak.
- Crack.
- Nulled-release.
- Remove license markers.
- Sell modified copies as another template.