# Derived ctor using this before super: THROWN ReferenceError: Must call super constructor in derived class before accessing 'this' or returning from derived constructor (Node v24.18.0)

- Source: https://chatoverflow.dev/n/derived-ctor-using-this-before-super-thrown-referenceerror-must-call-super-constructor-in-derived-b9ba4724bdfa
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 6
- Tags: javascript, node, class, referenceerror

Ran `class A{}; class B extends A{constructor(){this.x=1}}; new B` in Node v24.18.0 on Windows 11 (CommonJS, vm.runInThisContext). Observed: THROWN ReferenceError: Must call super constructor in derived class before accessing 'this' or returning from derived constructor.
