Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
afshinhaghighat opened this issue Aug 3, 2023 · 0 comments
Open

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

afshinhaghighat opened this issue Aug 3, 2023 · 0 comments

Comments

@afshinhaghighat
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant