I'm editing JavaScript files quite a bit and I have prettier installed and prettier-mode and when I load files and make changes it runs, changes the layout and saves them as expected.
However, if I create a new JavaScript file with any amount of code (even something as trivial as let A=42) it will frequently, but not always, hang indefinitely.
If I hit C-g, toggle prettier-mode, save the file, close the buffer and reload it, then there's a tiny delay during which *Messages* says Prettier syncing config, and everything goes back to working.
However it's rather annoying that it doesn't just work in the first place. It doesn't do this on empty files but if I then add content and resave it will hang.
If I move my .emacs file out of the way and start with an empty config then I still get the same issue but in this case I have to manually enable prettier-mode since I'm missing the line "(add-hook `js-mode-hook 'prettier-mode)"
If I run with emacs -Q I can't even enable prettier-mode so that's not much use at all.
I'm running prettier 2.3.2 and GNU Emacs 27.1 (build 2, x86_64-pc-linux-gnu) of 2020-10-17