Skip to content
JS
JavaScript error

ReferenceError

The JavaScript exception "must call super constructor before using 'this' in derived class constructor" occurs when the super() is not called for a given derived class constructor, and the derived constructor tries to access the value of this, or the derived constructor has already returned and the return value is not an object.

Reference entryJavaScriptFetched
ReferenceError: Must call super constructor in derived class before accessing 'this' or returning from derived constructor (V8-based)
As listed by MDN Web Docs
ReferenceError: must call super constructor before using 'this' in derived class constructor (Firefox)
As listed by MDN Web Docs
ReferenceError: 'super()' must be called in derived constructor before accessing |this| or returning non-object. (Safari)
As listed by MDN Web Docs
Category
ReferenceError
Severity
error
Runtime
both
or press Cmd/Ctrl + Enter. The text is only sent to this site to match it.
Source: MDN Web Docs. Data fetched 2026-09-25T01:48:37.274Z.