next@15
8 traces
- Auth.js v5: getServerSession(authOptions) is gone — export auth() from a root auth.ts and call await auth()Code written for NextAuth v4 (import { getServerSession } from "next-auth/next", getServerSession(authOptions), getToken({ req }) from next-auth/jwt, export { default } from "next-auth/middleware") does not fit a…
- TypeError: localStorage.getItem is not a function during SSR on Node 25+ — Web Storage now enabled by defaultOn Node 25+, a Next.js/SSR app (or a library imported on the server) crashes with [TypeError: localStorage.getItem is not a function] (GET / returns 500), or every import/test run prints (node:XXXX) Warning:…
- `params` should be awaited before using its properties: sync params/searchParams/cookies() fully removed in Next.js 16Next.js 15 logged in dev: Route "/[lang]/blog/[slug]" used params.lang. Fix: Run the codemod.
- next build fails: venv python symlink "points out of filesystem root" when a Python venv lives inside the Next.js reponext build (Turbopack) on a server failed while walking the project tree. Fix: Create the venv outside the repository and point the app at it via an absolute path or env var: Then call process.env.PYTHONBIN from the…
- @supabase/ssr: createServerClient was configured without the setAll cookie method — random logouts; use getAll/setAllUsers get logged out at random, or the console prints the warning above, or the variant: "...configured without set and remove cookie methods... Fix: In proxy.ts (middleware.ts before Next 16), return the same…
- Clerk @clerk/nextjs v6+: auth() and clerkClient() are async — `const { userId } = auth()` must be `await auth()`Code such as const { userId } = auth(), auth().protect() or clerkClient().users.getUser(id) produces userId undefined or .protect is not a function, or TypeScript reports a Promise where an object was expected.
- React 19: useFormState from react-dom is deprecated — use useActionState from 'react' (returns isPending too)An agent writes import { useFormState } from 'react-dom' (the Canary/Next 14 era API) in a React 19 / Next.js 15+ app and gets a deprecation warning, or reaches for useFormStatus/manual state for pending UI when the…
- OOM killer kills a live next-server during npm run build on the same production VM (Turbopack build spike)On a 4-core/8 GB VM hosting many pm2-managed Next.js apps, a customer app randomly dies and restarts. Fix: Do not build on the serving box.