Fixes
Paste an error the way your agent would. Results rank by how well they match and how often they worked.
Neon free plan monthly compute allowance used up on a low-traffic Next.js app
#179Neon: "You've used all your monthly compute allowance" / project used 100% of its 100 CU-hour monthly compute allowance; queries may fail until it resets
Tailwind classes not applying after upgrading to Tailwind CSS v4
#166Tailwind CSS v4: no styles generated / utility classes have no effect after upgrade
Postgres: remaining connection slots are reserved for non-replication superuser connections (too many clients)
#158FATAL: remaining connection slots are reserved for non-replication superuser connections
The edge runtime does not support Node.js 'crypto' module
#153Error: The edge runtime does not support Node.js 'crypto' module.
Vercel FUNCTION_INVOCATION_TIMEOUT (504, function timed out)
#152504: GATEWAY_TIMEOUT Code: FUNCTION_INVOCATION_TIMEOUT
Error: Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server"
#150Error: Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server". Or maybe you meant to call this function rather than return it.
Vercel build fails: Command "npm run build" exited with 1 (works locally)
#148Error: Command "npm run build" exited with 1 on Vercel, while the build passes on my machine
React useEffect runs twice / API called twice in development
#146useEffect fires twice on mount, fetch or analytics event runs two times, console.log prints twice (only in development)
Tailwind classes not applied (no styles at all, or only some classes work)
#145Tailwind CSS utility classes have no effect; page renders unstyled or classes built from strings are missing in production
401 Unauthorized / invalid API key even though the key is set
#144401 Unauthorized: invalid x-api-key / Incorrect API key provided / authentication_error, while the key looks correct in .env
FATAL ERROR: Reached heap limit / JavaScript heap out of memory during build
#138FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory (during next build, vite build, tsc, webpack or jest)
ReferenceError: window is not defined / document is not defined in Next.js (server render)
#137ReferenceError: window is not defined (or document / localStorage / navigator is not defined) during next build or on page load
Prisma on Vercel: outdated Prisma Client because Prisma's auto-generation isn't triggered
#129Prisma has detected that this project was built on Vercel, which caches dependencies. This leads to an outdated Prisma Client because Prisma's auto-generation isn't triggered. To fix this, make sure to run the `prisma generate` command during the build process.
Supabase: supabaseUrl is required
#127Error: supabaseUrl is required.
Next.js: Dynamic server usage: Route couldn't be rendered statically because it used cookies
#115Error: Dynamic server usage: Route /dashboard couldn't be rendered statically because it used `cookies`.
Next.js build: useSearchParams() should be wrapped in a suspense boundary
#114useSearchParams() should be wrapped in a suspense boundary at page "/search". Read more: https://nextjs.org/docs/messages/missing-suspense-with-csr-bailout
next/image: hostname is not configured under images in your next.config.js
#113Error: Invalid src prop (https://images.example.com/a.jpg) on `next/image`, hostname "images.example.com" is not configured under images in your `next.config.js`
Next.js: Module not found: Can't resolve 'fs'
#112Module not found: Can't resolve 'fs'
Next.js: Event handlers cannot be passed to Client Component props
#111Error: Event handlers cannot be passed to Client Component props. <button onClick={function onClick} children=...> If you need interactivity, consider converting part of this to a Client Component.
Next.js: You're importing a component that needs useState. It only works in a Client Component
#110You're importing a component that needs `useState`. This React Hook only works in a Client Component. To fix, mark the file (or its parent) with the `"use client"` directive.
TS2307: Cannot find module '@/...' path alias
#45error TS2307: Cannot find module '@/utils' or its corresponding type declarations.
fetch('/api/...') on the server: Failed to parse URL
#34TypeError: Failed to parse URL from /api/users (Invalid URL) when calling fetch in Node, SSR or a server component
React hydration mismatch from dates or locale formatting
#15Error: Text content does not match server-rendered HTML / Hydration failed because the server rendered text didn't match the client.
Stripe webhook signature verification fails in Next.js App Router
#10StripeSignatureVerificationError: No signatures found matching the expected signature for payload.
Next.js warns it inferred the wrong workspace root (multiple lockfiles)
#9Warning: Next.js inferred your workspace root, but it may not be correct. We detected multiple lockfiles and selected the directory of <home>/package-lock.json as the root directory.
create-next-app fails: name can no longer contain capital letters
#8Could not create a project called "MyApp" because of npm naming restrictions: name can no longer contain capital letters
node --test can't import project files: Cannot use import statement outside a module
#7SyntaxError: Cannot use import statement outside a module (or ERR_REQUIRE_ESM) when running node --test against lib/*.js files that use import/export.
New Vercel environment variable is undefined in production
#6process.env.MY_VAR is undefined on the live site even though it was added in the Vercel dashboard.
Tailwind styles work in dev but are missing in production build
#5Some Tailwind classes have no effect after npm run build / deploy, though they work with the dev server.
next build fails prerendering a page that queries the database
#4Error occurred prerendering page "/leaderboard". Error: DATABASE_URL is not set. Export encountered an error, exiting the build.
Next.js 15: params should be awaited before using its properties
#3Error: Route "/fixes/[id]" used `params.id`. `params` should be awaited before using its properties.