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
[Bug] Prettier v3 Support #61
Comments
Downgrading prettier to 2.8.7 and eslint-plugin-prettier to 4.2.1 got it running. So seems to be an issue with prettier 3 |
I looked into this a little bit. It's non-trivial. The proximate cause of the failure is that The call signature of printer.embed = (path, print, textToDoc, options) => {
return stuff
} becomes something like: printer.embed = (path, options) => {
return async (textToDoc, print) => {
return stuff;
}
}
|
Hitting the same thing error on updating to prettier v3
The code is within prettier v3 says -> "Also, the preprocess method of a printer can return a promise now." So I think that'll be the place. |
I've opened a draft PR here I am stuck on 2 types issues, if anyone could lend a hand. Else, feel free to use it as a guide for your own prettier v3 update |
I've been watching the status updates for Prettier v3 like 🙈 . Looks like it's here now. I'll try to look into this ASAP |
Just released |
@gitKrystan that is working for me with prettier 3.0.0 🚀 🎉 🚀 🎉 🚀 🎉 |
Same here!!! That fix solved the issue. (Now I'm blocked by #81 (comment) 😂 ) |
Working for me. @gitKrystan Thanks for fixing this so quickly 😊 |
Fixed as of v1.0.0 🎉 |
works great for me as well. thanks for putting in the effort here to get it across the line! happily on prettier 3 now :) |
🐞 Describe the Bug
Trying to get this working in vs code, also seeing this error when running
pnpm lint
.Sidenote, to get to this point I had to follow the tips in #38
🔬 Minimal Reproduction
Not sure how reproducible this is I'm not sure of the cause. As it shows up outside of vscode I don't think it's an editor specific issue.
Some probably relevant info
😕 Actual Behavior
Will not run. Failing with
assertExists failed
and a stack trace of minified code.🤔 Expected Behavior
Prettier is run.
🌍 Environment
➕ Additional Context
Output from VS Code
Output from
pnpm lint:js
The text was updated successfully, but these errors were encountered: