Next.js Discord

Discord Forum

Prettier + NextJS - Extremely slow format on save?

Unanswered
Dutch posted this in #help-forum
Open in Discord
DutchOP
Just recently as my app has started to grow in NextJS I've noticed when doing format on save, which I've done for years using Prettier to format, the syntax coloring breaks and it takes forever to save the file...

This is specifically with NextJS ONLY, I've gone back to recent projects made with React Vite + Express backend, 10x bigger than my current project, and when I save and prettier does the automatic format, its literally instant...

I've tried to do a complete fresh reinstall of vscode but this issue still keeps happening, only on my NextJS project, why is this happening and has anyone had this issue? How do I fix it?

I shared the example images of how my code looks before and after saving, you'll see after saving and having prettier format the code, the syntax just goes white and stays that way

0 Replies