Skip to content

[3.9.x] Babel's DecoratorAbstractMethod should be an ignored error code #19491

Description

@evoactivity

this code is common and encouraged in the ember ecosystem (playground)

export default class ProjectStatusComponent extends Component<ProjectStatusSig> {
  @service declare server: ServerService;
}

This now results in this error

SyntaxError: Decorators can't be used with a declare field. (2:3)

Babel patch this into prettier to test against it and recommended prettier should ignore it.
babel/babel#17949 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang:typescriptIssues affecting TypeScript-specific constructs (not general JS issues)

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions