Digest · 2026-11-24

Weekly Vibe-Coding Digest — Errors, Tools & Prompts

The weekly vibe-coding digest — PasteError

Most common errors of the week, AI coding tools worth trying, prompts you can steal. 5 minutes, every week.

Errors of the week

The top diagnosis this week came from a Cursor project: a component used window during server-side rendering. Next.js renders components on the server first — window doesn't exist there. The fix is either adding 'use client' to make it a client component, or reading the value after mount with useEffect.

We also kept seeing the classic TypeError: Failed to fetch — usually a localhost URL left in a deployed app, an http:// API called from an https:// page, or CORS. Open the Network tab before changing code.

Tools worth trying

Prompt you can steal

Run a security review before you ship anything. Paste this into Cursor, Claude Code, Copilot, or any AI coding tool:

Before I launch, review this project for security problems. Check, in this order:\n1) Secrets: are any API keys or service-role keys in frontend code, in git, or in files the browser can load?\n2) Auth: which routes, API endpoints and database queries work without a logged-in user? Should they?\n3) Access: can a logged-in user read or change another user's data by changing an ID in the URL or request? (If we use Supabase: is Row Level Security on for every table, with a policy for each action?)\n4) Input: is any user input put into SQL, HTML, shell commands or fetch URLs without validation?\nList each finding with the file, the risk in one sentence, and the fix. Don't change any code yet. Wait until I say which ones to fix.

Why it works: you get a list first instead of a pile of edits, the order puts the worst leaks first, and "don't change any code yet" keeps the agent from "fixing" things you didn't ask it to touch. (Lovable added a native Security Review this week — same idea.)

Got an error you can't make sense of? Paste it into PasteError to get a plain-English explanation and a fix prompt for your tool. Want us to write up an error? Tell us.

Get the next issue in your inbox.