Error map

useContext undefined TypeError: Cannot destructure property 'user' of 'useContext(...)' as it is undefined.

React · layer 1, On your device

Open the full error page →

Centre: this error. First ring: errors it is linked with (8). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.

useContext undefined — TypeError: Cannot destructure property 'user' of 'useContext(...)' as it is undefined. (React)useContext …TypeError — TypeError: Cannot read properties of undefined (reading 'x') (JavaScript)TypeErroruseNavigate outside Router — Error: useNavigate() may be used only in the context of a <Router> component. (React)useNavigate outside…reading length — TypeError: Cannot read properties of undefined (reading 'length') (JavaScript)reading lengthFlask app context — RuntimeError: Working outside of application context. (Python)Flask app contextNo QueryClient set — Error: No QueryClient set, use QueryClientProvider to set one (React)No QueryClient setTypeError not iterable — TypeError: x is not iterable (JavaScript)TypeError not itera…Object.keys null — TypeError: Cannot convert undefined or null to object (JavaScript)Object.keys nullTypeError set undefined — TypeError: Cannot set properties of undefined (setting 'x') (JavaScript)TypeError set undef…NullReferenceException — System.NullReferenceException: Object reference not set to an instance of an object (.NET)NullReferenceExcept…TypeError: not a function — TypeError: x is not a function (JavaScript)TypeError: not a fu…ReferenceError — ReferenceError: x is not defined (JavaScript)ReferenceErrorAdjacent JSX elements — Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>? (React)Adjacent JSX elemen…setState during render — Warning: Cannot update a component (`Parent`) while rendering a different component (`Child`) (React)setState during ren…No routes matched — No routes matched location "/x" (React)No routes matchedArrayIndexOutOfBoundsException — java.lang.ArrayIndexOutOfBoundsException: Index 5 out of bounds for length 5 (Java)ArrayIndexOutOfBoun…addEventListener on null — TypeError: Cannot read properties of null (reading 'addEventListener') (JavaScript)addEventListener on…reduce empty — TypeError: Reduce of empty array with no initial value (JavaScript)reduce emptyAttributeError — AttributeError: 'X' object has no attribute 'y' (Python)AttributeErrorConnectionRefusedError — ConnectionRefusedError: [Errno 111] Connection refused (Python)ConnectionRefusedEr…Event loop is closed — RuntimeError: Event loop is closed (Python)Event loop is closeduncontrolled to controlled — Warning: A component is changing an uncontrolled input to be controlled (React)uncontrolled to con…not wrapped in act — Warning: An update to Component inside a test was not wrapped in act(...) (React)not wrapped in actTS2532 / TS18048 — TS18048: 'x' is possibly 'undefined'. (TS2532: Object is possibly 'undefined'.) (Node.js)TS2532 / TS18048Array offset on null — Warning: Trying to access array offset on value of type null (PHP)Array offset on nullRuntimeError dict — RuntimeError: dictionary changed size during iteration (Python)RuntimeError dictread-only property — TypeError: Cannot assign to read only property 'x' of object (JavaScript)read-only propertyUndefined variable — Warning: Undefined variable $x (PHP)Undefined variableUndefined property — Warning: Undefined property: Class::$prop (PHP)Undefined propertyRangeError — RangeError: Maximum call stack size exceeded (JavaScript)RangeErrorKeyError — KeyError: 'x' (Python)KeyErrorTypeError: NoneType — TypeError: 'NoneType' object is not subscriptable (Python)TypeError: NoneType

Directly related (8)

Two steps away (23)

NullReferenceException.NET

System.NullReferenceException: Object reference not set to an instance of an object

Code dereferenced a variable that is `null` — the .NET equivalent of Java’s NullPointerException.

TypeError: not a functionJavaScript

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…).

ReferenceErrorJavaScript

ReferenceError: x is not defined

Code refers to a variable or function name that doesn’t exist in the current scope.

Adjacent JSX elementsReact

Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?

A component returns two sibling JSX elements without a single parent.

setState during renderReact

Warning: Cannot update a component (`Parent`) while rendering a different component (`Child`)

A child component updated a parent’s state during its render instead of in an effect or event handler.

No routes matchedReact

No routes matched location "/x"

React Router found no route definition for the current URL.

ArrayIndexOutOfBoundsExceptionJava

java.lang.ArrayIndexOutOfBoundsException: Index 5 out of bounds for length 5

Code accessed an array index outside 0 … length-1.

addEventListener on nullJavaScript

TypeError: Cannot read properties of null (reading 'addEventListener')

document.querySelector/getElementById returned null, so the element doesn’t exist when the script runs.

reduce emptyJavaScript

TypeError: Reduce of empty array with no initial value

Array.reduce() ran on an empty array without an initial value.

AttributeErrorPython

AttributeError: 'X' object has no attribute 'y'

You accessed an attribute or method that doesn’t exist on that object type.

ConnectionRefusedErrorPython

ConnectionRefusedError: [Errno 111] Connection refused

Nothing is listening on the host/port Python tried to connect to.

Event loop is closedPython

RuntimeError: Event loop is closed

Async code tried to use an event loop that has already been shut down.

uncontrolled to controlledReact

Warning: A component is changing an uncontrolled input to be controlled

An input’s `value` started as `undefined` (uncontrolled) and later became a defined value (controlled), or vice versa.

not wrapped in actReact

Warning: An update to Component inside a test was not wrapped in act(...)

A component updated state after the test’s synchronous assertions — async work wasn’t awaited.

TS2532 / TS18048Node.js

TS18048: 'x' is possibly 'undefined'. (TS2532: Object is possibly 'undefined'.)

TypeScript requires you to handle the case where a value may be undefined before using it.

Array offset on nullPHP

Warning: Trying to access array offset on value of type null

Code used `$x['key']` where `$x` is null — usually a lookup or function that returned nothing.

RuntimeError dictPython

RuntimeError: dictionary changed size during iteration

A dict (or set) was modified while being looped over.

read-only propertyJavaScript

TypeError: Cannot assign to read only property 'x' of object

Code tried to modify a frozen object, a getter-only property, or immutable state.

Undefined variablePHP

Warning: Undefined variable $x

PHP read a variable that was never assigned in the current scope.

Undefined propertyPHP

Warning: Undefined property: Class::$prop

Code read an object property that doesn’t exist on that object.

RangeErrorJavaScript

RangeError: Maximum call stack size exceeded

A function called itself (directly or indirectly) too many times — usually infinite recursion.

KeyErrorPython

KeyError: 'x'

You accessed a dictionary key that doesn’t exist.

TypeError: NoneTypePython

TypeError: 'NoneType' object is not subscriptable

You used `[ ]` on a value that is `None` — typically a function that returned nothing.