Skip to content
JS
JavaScript error

SyntaxError

The JavaScript exception "mismatched placement" occurs when a private getter and setter are mismatched in whether or not they are static.

Reference entryJavaScriptFetched
SyntaxError: Identifier '#x' has already been declared (V8-based)
As listed by MDN Web Docs
SyntaxError: getter and setter for private name #x should either be both static or non-static (Firefox)
As listed by MDN Web Docs
SyntaxError: Cannot declare a private non-static getter if there is a static private setter with used name. (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.