Next.js & React errors
Hydration mismatches, server-component surprises, and the other Next.js and React errors that stop a build cold.
- Route used `searchParams.q`. `searchParams` should be awaited before using its properties
- Route used `cookies().get(...)`. `cookies()` should be awaited before using its properties
- TypeError: Cannot destructure property 'x' of 'undefined' as it is undefined
- Argument of type 'string' is not assignable to parameter of type '...' (TS2345)
- Cannot update a component while rendering a different component (React)
- Rendered more hooks than during the previous render
- Property 'x' does not exist on type 'y' (TS2339)
- Maximum update depth exceeded
- Invalid hook call. Hooks can only be called inside of the body of a function component
- Each child in a list should have a unique "key" prop
- TypeError: Cannot read properties of undefined (reading '...')
- Application error: a client-side exception has occurred (Next.js)
- ReferenceError: window is not defined
- Route used `params.id`. `params` should be awaited before using its properties
- Too many re-renders: infinite loop caused by useEffect dependencies
- Module not found: Failed to resolve import
- You're importing a component that needs "use client"
- Tailwind classes are in the code, but the styles do not show
- Invalid src prop on next/image: hostname is not configured under images in your next.config.js
- Hydration failed: Text content does not match server-rendered HTML
- Environment variables are undefined in Next.js (process.env returns undefined)
- Objects are not valid as a React child (found: object with keys)