🟨 JavaScript errors

Browser and runtime JavaScript errors: TypeError, ReferenceError, SyntaxError and promise rejections.

CodeErrorWhat it means
RangeError RangeError: Maximum call stack size exceeded A function called itself (directly or indirectly) too many times — usually infinite recursion.
ReferenceError ReferenceError: x is not defined Code refers to a variable or function name that doesn’t exist in the current scope.
SyntaxError: JSON SyntaxError: Unexpected token < in JSON at position 0 `JSON.parse()` / `response.json()` received something that isn’t JSON — very often an HTML error page.
TypeError TypeError: Cannot read properties of undefined (reading 'x') You tried to access a property on a value that is `undefined` (or `null`) — usually data that hasn’t loaded y…
Failed to fetch TypeError: Failed to fetch / NetworkError when attempting to fetch resource The browser couldn’t complete the request at the network level — CORS, DNS, offline, blocked mixed content, o…
TypeError: not a function TypeError: x is not a function You called something as a function, but its value is not a function (it’s undefined, a string, an object…).