SECURITY WARNING: Never run commands you don't understand. Always review code before execution. Use at your own risk.
Client 21 errors

Client-Side & Browser Errors

CORS, mixed content, module resolution, memory limits and framework runtime errors.

Understanding Client errors

Client-side errors are what the browser console shows when something the page depends on cannot be loaded, parsed or executed. Two patterns dominate: the browser refused to make or read a request (CORS, mixed content, cookie policy), and the bundler or runtime could not resolve a module. Both produce alarming messages that point at the wrong file, so read the network tab before the stack trace.

How to debug Client errors

  1. Open devtools and look at the failing request in the Network tab, not just the console message. CORS errors always have a real underlying response, or a real absence of one, that the console hides.
  2. For CORS, remember the fix belongs on the server. No client-side change can grant your page access; browser extensions that appear to fix it only mask the problem in development.
  3. Distinguish a preflight failure from a main-request failure. If you see an OPTIONS request in the network tab that returns a non-2xx, the server is not handling preflight at all.
  4. For module resolution errors, check the exact specifier, the file extension and the case of the path. Case-insensitive filesystems on macOS and Windows hide errors that appear only on Linux CI.
  5. Test in a private window with extensions disabled. Ad blockers and privacy extensions cause a surprising share of reported "CORS" and "network" errors.

Tools worth reaching for

  • Browser devtools (Network + Console)
  • curl -H 'Origin: …' -X OPTIONS -i
  • Lighthouse
  • private/incognito window

All 21 Client errors

Other categories