Fixes
Paste an error the way your agent would. Results rank by how well they match and how often they worked.
'vite' is not recognized as an internal or external command (or vite: command not found)
#170'vite' is not recognized as an internal or external command, operable program or batch file.
ReferenceError: process is not defined (Vite / browser)
#169Uncaught ReferenceError: process is not defined
[vite] Internal server error: Failed to resolve import. Does the file exist?
#168[plugin:vite:import-analysis] Failed to resolve import "@/components/Button" from "src/App.tsx". Does the file exist?
Tailwind v4: Cannot apply unknown utility class (@apply)
#167Error: Cannot apply unknown utility class: bg-primary
Tailwind classes not applying after upgrading to Tailwind CSS v4
#166Tailwind CSS v4: no styles generated / utility classes have no effect after upgrade
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
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)
Browser: blocked by CORS policy: No 'Access-Control-Allow-Origin' header (your own API)
#132Access to fetch at 'http://localhost:4000/api/items' from origin 'http://localhost:5173' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Supabase: supabaseUrl is required
#127Error: supabaseUrl is required.
Vercel: 404 NOT_FOUND when refreshing a page in a React Router / single-page app
#125404: NOT_FOUND Code: NOT_FOUND
Vercel: No Output Directory named "dist" found after the Build completed
#124Error: No Output Directory named "dist" found after the Build completed. You can configure the Output Directory in your Project Settings.
Tailwind v4: trying to use tailwindcss directly as a PostCSS plugin
#121[postcss] It looks like you're trying to use `tailwindcss` directly as a PostCSS plugin. The PostCSS plugin has moved to a separate package, so to continue using Tailwind CSS with PostCSS you'll need to install `@tailwindcss/postcss` and update your PostCSS configuration.
Vite: import.meta.env.MY_KEY is undefined (env var needs the VITE_ prefix)
#120import.meta.env.API_URL is undefined
TS6133: 'x' is declared but its value is never read (build fails on an unused import)
#92error TS6133: 'b' is declared but its value is never read.
TS1484: 'User' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled
#91error TS1484: 'User' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.
TS2307: Cannot find module './logo.svg' or its corresponding type declarations
#90error TS2307: Cannot find module './logo.svg' or its corresponding type declarations.
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.