Failures
Common AI failure patterns and how to fix them.
10 entries
How to Fix AI Breaking the Cloudflare Workers Runtime
AI agents import Node.js built-ins like fs, crypto, and path into Cloudflare Workers, causing runtime errors because the Workers runtime is not Node.js.
How to Fix AI Creating React Hydration Mismatches
AI agents generate React components that render different HTML on the server and client, triggering hydration errors and broken UI on first load.
How to Fix AI Forgetting Environment Variable Validation
AI agents read process.env values directly without validation, causing silent undefined bugs and missing startup errors when env vars are absent.
How to Fix AI Generating Invalid Prisma Relations
AI agents generate Prisma schema relations with missing back-relations, wrong referential actions, or mismatched field types that fail prisma validate and prisma migrate.
How to Fix AI Ignoring SEO Metadata
AI agents scaffold Next.js and Astro pages without title tags, Open Graph metadata, or canonical URLs, shipping pages that are invisible to search engines and social crawlers.
How to Fix AI Coding Agents Inventing Fake npm Packages
Why AI agents hallucinate npm packages that don't exist, how to spot it, and how to stop it.
How to Fix AI Overusing useEffect
AI agents reach for useEffect to handle derived state, event transforms, and data fetching that should instead use useMemo, event handlers, or Server Components.
How to Fix AI Putting Server Code in Client Components
AI agents leak database queries, secret env vars, and Node.js APIs into 'use client' components, exposing server-only logic to the browser bundle.
How to Fix AI Coding Agents Using Outdated Next.js APIs
AI agents frequently generate Next.js code using deprecated Pages Router patterns, getServerSideProps, and removed APIs that break App Router projects.
How to Fix AI Writing Insecure SQL
AI agents build SQL queries with string interpolation instead of parameterized statements, introducing SQL injection vulnerabilities into production database code.