Skip to content
JS
JavaScript error

SyntaxError

The JavaScript exception "super() is only valid in derived class constructors" occurs when the super() call is used somewhere that's not the body of a constructor in a class with extends keyword.

Reference entryJavaScriptFetched
SyntaxError: 'super' keyword unexpected here (V8-based)
As listed by MDN Web Docs
SyntaxError: super() is only valid in derived class constructors (Firefox)
As listed by MDN Web Docs
SyntaxError: super is not valid in this context. (Safari)
As listed by MDN Web Docs
Category
SyntaxError
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.273Z.