Troubleshooting

Build and runtime errors

The most common errors during install, build, and start — and how to fix each one.

May 7, 2026·1 min read·16 views

Most build and runtime errors come down to a small handful of misconfigurations.

ERESOLVE / peer dependency conflict during npm install

Add a .npmrc file with:


legacy-peer-deps=true

Then re-run npm install. Vercel and most CI providers will pick up the file automatically.

"Can't reach database server"

Your DATABASE_URL is missing or wrong. For Neon and Supabase, the URL must include ?sslmode=require at the end. Confirm the URL works locally with npx prisma db pull.

Prisma "Unknown arg" or missing column

You changed the schema but didn't regenerate the client. Run:


npx prisma db push

npx prisma generate

Then restart your dev server — the Prisma client is bundled into the running process and won't reload on its own.

"Element type is invalid… got: undefined"

You imported a component that doesn't exist or wasn't exported. Double-check the import path and whether the component uses a named or default export.

Hydration mismatch

Some piece of state was different between server and client. Common causes:

  • Reading window, localStorage, or navigator outside a useEffect.

  • Time-based defaults (new Date()) used in JSX that the server and client computed differently.

  • Random ordering — wrap with useMemo and a stable seed.

Still stuck?

Open a support ticket from your portal with the full error, the command that triggered it, your OS / Node version, and the product order number.

Was this article helpful?

Be the first to share your feedback

Still have questions?

A senior engineer (not a sales person) answers every email.

Booking Q2 2026 Projects

Ready to Build Something Great?

From idea to launch — let our senior engineers build, ship and scale your next product. No commitment, just a conversation.

Senior Engineers
On-Time Delivery
Enterprise-Grade
Free Consultation

Free 30-min discovery call

Talk to a senior engineer — not a salesperson.

We'll review your goals, suggest the leanest path forward, and send a clear proposal within 24 hours.

24h

Response Time

100+

Projects Delivered

No commitment · No automated bots · Fully transparent