Unable to work settings.json formatOnSave

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