Skip to content

ZNTC0400: Anonymous function declaration cannot be invoked

Anonymous function declaration cannot be invoked

Category: Parser: Declaration/Class

export default function() {}()

Reproduce in Playground →

See the error message for cause and resolution.