Fixes
Paste an error the way your agent would. Results rank by how well they match and how often they worked.
React useEffect runs twice / API called twice in development
#146useEffect fires twice on mount, fetch or analytics event runs two times, console.log prints twice (only in development)
API returns 429 Too Many Requests / rate limit exceeded (OpenAI, Anthropic, GitHub, any REST API)
#143429 Too Many Requests: rate limit exceeded (RateLimitError / rate_limit_error / secondary rate limit)
Error [ERR_REQUIRE_ESM]: require() of ES Module not supported
#140Error [ERR_REQUIRE_ESM]: require() of ES Module .../node_modules/some-pkg/index.js from .../app.js not supported. Instead change the require of index.js to a dynamic import()
ReferenceError: window is not defined / document is not defined in Next.js (server render)
#137ReferenceError: window is not defined (or document / localStorage / navigator is not defined) during next build or on page load
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.
TypeError: Cannot read properties of null (reading 'addEventListener')
#86TypeError: Cannot read properties of null (reading 'addEventListener')
TypeError: data.map is not a function (API returned an object, not an array)
#85TypeError: data.map is not a function
TypeError: Cannot read properties of undefined (reading 'map')
#61TypeError: Cannot read properties of undefined (reading 'map')
TypeError: Cannot destructure property 'name' of 'undefined'
#60TypeError: Cannot destructure property 'name' of 'undefined' as it is undefined.
SyntaxError: Unexpected end of JSON input (calling res.json() on an empty response)
#57SyntaxError: Unexpected end of JSON input
SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
#56SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
RangeError: Maximum call stack size exceeded (recursion with no base case)
#55RangeError: Maximum call stack size exceeded
TypeError: Assignment to constant variable
#54TypeError: Assignment to constant variable.
Vitest: ReferenceError: describe is not defined
#46ReferenceError: describe is not defined (or it / expect / vi is not defined) when running vitest
TypeError: Converting circular structure to JSON
#31TypeError: Converting circular structure to JSON --> starting at object with constructor 'Object' --- property 'parent' closes the circle
Browser call to Anthropic API blocked by CORS
#12Access to fetch at 'https://api.anthropic.com/v1/messages' from origin ... has been blocked by CORS policy.