prettier-plugin-twig-melody icon indicating copy to clipboard operation
prettier-plugin-twig-melody copied to clipboard

`concat` is deprecated and removed from prettier's library

Open afshinhaghighat opened this issue 2 years ago • 0 comments

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.

afshinhaghighat avatar Aug 03 '23 19:08 afshinhaghighat