You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to Prettier 3, formatting source code in docs page is not working anymore and nothing appears.
I’ve been using prettier.format() inside the transform callback to tweak the source code a bit when needed.
Seems like prettier.format is returning a promise in Prettier 3, and transform doesn't support async. is there any workaround for this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
After upgrading to Prettier 3, formatting source code in docs page is not working anymore and nothing appears.
I’ve been using prettier.format() inside the
transform
callback to tweak the source code a bit when needed.Seems like prettier.format is returning a promise in Prettier 3, and transform doesn't support async. is there any workaround for this?
Many thanks
Additional information
No response
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions