Error map

ReferenceError ReferenceError: x is not defined

JavaScript · layer 1, On your device

Open the full error page →

Centre: this error. First ring: errors it is linked with (12). 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.

ReferenceError — ReferenceError: x is not defined (JavaScript)ReferenceEr…TypeError — TypeError: Cannot read properties of undefined (reading 'x') (JavaScript)TypeErrorUnboundLocalError — UnboundLocalError: cannot access local variable 'x' where it is not associated with a value (Python)UnboundLocalErrorHydration failed — Error: Hydration failed because the initial UI does not match what was rendered on the server (React)Hydration failedTypeError: not a function — TypeError: x is not a function (JavaScript)TypeError: not a fu…SyntaxError import — SyntaxError: Cannot use import statement outside a module (Node.js)SyntaxError importZeroDivisionError — ZeroDivisionError: division by zero (Python)ZeroDivisionErrorReact must be in scope — ReferenceError: React is not defined / 'React' must be in scope when using JSX (React)React must be in sc…NameError — NameError: name 'x' is not defined (Python)NameErroralready declared — SyntaxError: Identifier 'x' has already been declared (JavaScript)already declaredProperty was accessed during render but is not defined — Vue: [Vue warn]: Property "x" was accessed during render but is not defined on instance (Vue)Property was access…CS0103 — error CS0103: The name 'x' does not exist in the current context (.NET)CS0103TypeError 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…Objects are not valid as a React child — Error: Objects are not valid as a React child (React)Objects are not val…Undefined array key — Warning: Undefined array key / Undefined index (PHP)Undefined array keyAttributeError — AttributeError: 'X' object has no attribute 'y' (Python)AttributeErrorTDZ — ReferenceError: Cannot access 'x' before initialization (JavaScript)TDZConnectionRefusedError — ConnectionRefusedError: [Errno 111] Connection refused (Python)ConnectionRefusedEr…Invalid hook call — Error: Invalid hook call. Hooks can only be called inside of the body of a function component. (React)Invalid hook callvalidateDOMNesting — Warning: validateDOMNesting(...): <div> cannot appear as a descendant of <p>. (React)validateDOMNestingCan't resolve 'fs' — Module not found: Can't resolve 'fs' (Next.js / webpack 5) (React)Can't resolve 'fs'MODULE_NOT_FOUND — Error: Cannot find module 'x' (MODULE_NOT_FOUND) (Node.js)MODULE_NOT_FOUNDTypeError const — TypeError: Assignment to constant variable. (JavaScript)TypeError constnot a constructor — TypeError: x is not a constructor (JavaScript)not a constructorERR_REQUIRE_ESM — Error [ERR_REQUIRE_ESM]: require() of ES Module not supported (Node.js)ERR_REQUIRE_ESMERR_HTTP_HEADERS_SENT — Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client (Node.js)ERR_HTTP_HEADERS_SE…ERR_UNKNOWN_FILE_EXTENSION — TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" (Node.js)ERR_UNKNOWN_FILE_EX…RangeError — RangeError: Maximum call stack size exceeded (JavaScript)RangeErrorKeyError — KeyError: 'x' (Python)KeyErrorTypeError: NoneType — TypeError: 'NoneType' object is not subscriptable (Python)TypeError: NoneTypeNothing was returned from render — Error: Nothing was returned from render. This usually means a return statement is missing. (React)Nothing was returne…Adjacent JSX elements — Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>? (React)Adjacent JSX elemen…Functions not valid as child — Warning: Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. (React)Functions not valid…ModuleNotFoundError — ModuleNotFoundError: No module named 'x' (Python)ModuleNotFoundErrorIndentationError — IndentationError: unexpected indent / expected an indented block (Python)IndentationErrorUnexpected token < — SyntaxError: Unexpected token '<' (HTML served instead of JavaScript) (JavaScript)Unexpected token <unexpected end of input — SyntaxError: Unexpected end of input (JavaScript)unexpected end of i…missing ) — SyntaxError: missing ) after argument list (JavaScript)missing )TemplateDoesNotExist — django.template.exceptions.TemplateDoesNotExist: app/page.html (Python)TemplateDoesNotExistNG8002 — Angular: NG8002: Can't bind to 'ngModel' since it isn't a known property of 'input' (Angular)NG8002Failed to resolve component — Vue: [Vue warn]: Failed to resolve component: x (Vue)Failed to resolve c…CS0246 — error CS0246: The type or namespace name 'X' could not be found (are you missing a using directive or an assembly reference?) (.NET)CS0246CS1061 — error CS1061: 'X' does not contain a definition for 'Y' and no accessible extension method 'Y' accepting a first argument of type 'X' could be found (.NET)CS1061CS8618 — warning CS8618: Non-nullable property 'X' must contain a non-null value when exiting constructor. Consider declaring the property as nullable (.NET)CS8618addEventListener on null — TypeError: Cannot read properties of null (reading 'addEventListener') (JavaScript)addEventListener on…TypeError 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 null

Directly related (12)

TypeErrorJavaScript

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 yet or a wrong proper…

UnboundLocalErrorPython

UnboundLocalError: cannot access local variable 'x' where it is not associated with a value

A function assigns to a variable somewhere, which makes it local everywhere in that function — so reading it before the assignmen…

Hydration failedReact

Error: Hydration failed because the initial UI does not match what was rendered on the server

The HTML rendered on the server differs from the first client render, so React (Next.js/Remix) can’t attach to it.

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

SyntaxError importNode.js

SyntaxError: Cannot use import statement outside a module

An `import` statement ran in a context treated as CommonJS (Node without "type": "module", a browser script without type="module"…

ZeroDivisionErrorPython

ZeroDivisionError: division by zero

A number was divided (or modulo’d) by zero.

React must be in scopeReact

ReferenceError: React is not defined / 'React' must be in scope when using JSX

JSX was compiled with the classic runtime, which needs React imported in every file.

NameErrorPython

NameError: name 'x' is not defined

Python doesn’t know the name — it was never assigned/imported in this scope, or it’s misspelled.

already declaredJavaScript

SyntaxError: Identifier 'x' has already been declared

The same let/const/class name was declared twice in the same scope.

Property was accessed during render but is not definedVue

Vue: [Vue warn]: Property "x" was accessed during render but is not defined on instance

The template references a variable/function that the component doesn’t expose.

CS0103.NET

error CS0103: The name 'x' does not exist in the current context

The identifier isn’t declared in scope — typo, variable declared in another block, missing using static, or a Razor/partial class…

TypeError set undefinedJavaScript

TypeError: Cannot set properties of undefined (setting 'x')

Code assigned a property on a value that is undefined (or null).

Two steps away (35)

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.

Objects are not valid as a React childReact

Error: Objects are not valid as a React child

You tried to render a plain object (or a Promise/Date) directly in JSX; React can only render strings, numbers, elements and arra…

Undefined array keyPHP

Warning: Undefined array key / Undefined index

Your code reads an array key that doesn’t exist — common with `$_GET`, `$_POST` and decoded JSON.

AttributeErrorPython

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

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

TDZJavaScript

ReferenceError: Cannot access 'x' before initialization

A let/const/class was used before its declaration line ran (temporal dead zone) — often a circular import.

ConnectionRefusedErrorPython

ConnectionRefusedError: [Errno 111] Connection refused

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

Invalid hook callReact

Error: Invalid hook call. Hooks can only be called inside of the body of a function component.

A hook ran outside a function component/custom hook, conditionally — or two copies of React are loaded.

validateDOMNestingReact

Warning: validateDOMNesting(...): <div> cannot appear as a descendant of <p>.

The JSX produces invalid HTML nesting, which also causes hydration mismatches in SSR.

Can't resolve 'fs'React

Module not found: Can't resolve 'fs' (Next.js / webpack 5)

A Node.js built-in (fs, path, crypto, net) is imported into code that runs in the browser bundle.

MODULE_NOT_FOUNDNode.js

Error: Cannot find module 'x' (MODULE_NOT_FOUND)

Node can’t resolve the module path — the package isn’t installed, or a relative path/extension is wrong.

TypeError constJavaScript

TypeError: Assignment to constant variable.

Code reassigned a variable declared with const.

not a constructorJavaScript

TypeError: x is not a constructor

new was used with something that isn’t a class/constructor — usually a wrong import.

ERR_REQUIRE_ESMNode.js

Error [ERR_REQUIRE_ESM]: require() of ES Module not supported

CommonJS code used `require()` on a package that is ES-module-only (node-fetch 3, chalk 5, nanoid 4, got 12…).

ERR_HTTP_HEADERS_SENTNode.js

Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client

An Express/Node handler tried to send a second response (or set headers) after one was already sent.

ERR_UNKNOWN_FILE_EXTENSIONNode.js

TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts"

Node tried to run a TypeScript file as ESM without a TypeScript loader.

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.

Nothing was returned from renderReact

Error: Nothing was returned from render. This usually means a return statement is missing.

A component returned undefined (React 17 and earlier) — usually a missing return or a return followed by a line break.

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.

Functions not valid as childReact

Warning: Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render.

A function (usually a component itself) was rendered instead of calling/rendering it as an element.

ModuleNotFoundErrorPython

ModuleNotFoundError: No module named 'x'

Python can’t find the module you import — it isn’t installed in the interpreter/virtualenv that’s running, or the import path is…

IndentationErrorPython

IndentationError: unexpected indent / expected an indented block

Python’s block structure is broken — inconsistent indentation or mixed tabs and spaces.

Unexpected token <JavaScript

SyntaxError: Unexpected token '<' (HTML served instead of JavaScript)

The browser loaded a .js file but received HTML (an error page or the SPA index.html).

unexpected end of inputJavaScript

SyntaxError: Unexpected end of input

The parser reached the end of the code (or JSON) while still expecting more — a missing } ) ] or empty JSON.

missing )JavaScript

SyntaxError: missing ) after argument list

A function call’s parentheses are unbalanced — often an unescaped quote or a missing comma/plus.

TemplateDoesNotExistPython

django.template.exceptions.TemplateDoesNotExist: app/page.html

Django searched all template directories and couldn’t find that template.

NG8002Angular

Angular: NG8002: Can't bind to 'ngModel' since it isn't a known property of 'input'

The template uses a property binding that no imported directive provides — for ngModel, FormsModule isn’t imported.

Failed to resolve componentVue

Vue: [Vue warn]: Failed to resolve component: x

The template uses a component tag that isn’t registered or imported where it’s used.

CS0246.NET

error CS0246: The type or namespace name 'X' could not be found (are you missing a using directive or an assembly reference?)

The compiler doesn’t know the type — missing using, missing NuGet package/project reference, or a target framework mismatch.

CS1061.NET

error CS1061: 'X' does not contain a definition for 'Y' and no accessible extension method 'Y' accepting a first argument of type 'X' could be found

The member you call doesn’t exist on that type — typo, wrong type, missing using for an extension method, or an API removed in a…

CS8618.NET

warning CS8618: Non-nullable property 'X' must contain a non-null value when exiting constructor. Consider declaring the property as nullable

With nullable reference types enabled, a non-nullable reference property isn’t initialised by the constructor.

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.

TypeError not iterableJavaScript

TypeError: x is not iterable

for…of, spread or destructuring was used on something that isn’t an array/iterable.

Object.keys nullJavaScript

TypeError: Cannot convert undefined or null to object

Object.keys/entries/assign was called with undefined or null.