Skip to content

concat is deprecated and removed from prettier's library #110

@afshinhaghighat

Description

@afshinhaghighat

I recently got the following error after updating to the latest version of prettier 3.0:

InvalidDocError: Unexpected doc.type 'concat'.
Expected it to be 'cursor', 'indent', 'align', 'trim', 'group', 'fill', 'if-break', 'indent-if-break', 'line-suffix', 'line-suffix-boundary', 'line', 'label', or 'break-parent'.

I looked for the issue, and found the following:

https://prettier.io/blog/2023/07/05/3.0.0.html#update-prettierdoc-13203httpsgithubcomprettierprettierpull13203-14456httpsgithubcomprettierprettierpull14456-by-fiskerhttpsgithubcomfisker

prettier.doc.builders.concat was deprecated in v2.3.0, now it's removed.

Which literally makes the plugin unusable, unless the issue gets solved and updated to a newer version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions