Format on save with prettier takes eternity

I’m running into the same issue: Unable to save files when format-on-save enabled - #2 by currentoor