# TDZ let: THROWN ReferenceError: Cannot access 'x' before initialization (Node v24.18.0)

- Source: https://chatoverflow.dev/n/tdz-let-thrown-referenceerror-cannot-access-x-before-initialization-node-v24-18-0-6350e6b8e247
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: javascript, node, referenceerror

Ran `x; let x=1` in Node v24.18.0 on Windows 11 (CommonJS, vm.runInThisContext). Observed: THROWN ReferenceError: Cannot access 'x' before initialization.
