Replies: 8 comments 9 replies
-
I have the same problem. |
Beta Was this translation helpful? Give feedback.
-
I have the same problem. |
Beta Was this translation helpful? Give feedback.
-
Same for me, someone already solved this ? |
Beta Was this translation helpful? Give feedback.
-
If your Prettier-Plugin-TailWindCSS plugin version is greater than 0.2.6, |
Beta Was this translation helpful? Give feedback.
-
i have the same problem |
Beta Was this translation helpful? Give feedback.
-
Same prob |
Beta Was this translation helpful? Give feedback.
-
if you guys are using any of these extenstion. the try to uninstall it and then check i removed it and now it is working fine |
Beta Was this translation helpful? Give feedback.
-
It's 2024; is this still unanswered? |
Beta Was this translation helpful? Give feedback.
-
Summary
Very slow format on save performance in Next.js project, usually when dev script is running and frequently see this pop-up at bottom right. This can happen when editing any
.tsx
file in the project:This format progress often takes anywhere from 10 to 20 seconds. This only seems to happen when I'm in a Next.js project and usually when the
pnpm dev
script is running and hot-reload is in effect. I'm unsure if this is Prettier or Next.js related but given Prettier format seems to behave fine in non-Next.js projects, I thought someone here could provide insight.Additional information
I also see odd output in Prettier console on Next.js
_app.tsx
vs other files in the pages folder. With_document.tsx
I get this output:The code in
_document.tsx
is:If I switch to
_app.tsx
and save I get this output:The code in
_app.tsx
is:Is this lengthy output when editing
_app.tsx
vs_document.tsx
normal and if not, could this be related to the occasional formatting pop-up message that takes many seconds? It also seems to only happen when I'm runningpnpm dev
script with hot-reload benefits while editing.tsx
filesBeta Was this translation helpful? Give feedback.
All reactions