Unable to work settings.json formatOnSave

I am currently using version 2.3.41 and default formatter ‘esbenp.prettier-vscode’.

before 2weeks ago it is worked well, but it’s not working.

Is there anyone like me?

Hey, this is a known issue with Prettier v12+. Cursor versions before 2.4 didn’t support ESM plugins.

The fix is already in Cursor 2.4:

  1. Update Cursor to 2.4+ (Cursor Settings > Beta > Early Access)
  2. After updating, reload the window: Ctrl + Shift + P > Developer: Reload Window

If you don’t want to wait for the update, a temporary workaround is to downgrade Prettier to 11.0.2 and reload the window.

More details and steps here: After last update PRETTIER stopped working - #19 by deanrie

1 Like

Thanks!
I almost switched to vscode again :slight_smile:

1 Like

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.