Prettier formatting not working in Cursor

Hey, thanks for the report. This is a known issue with Prettier v12+. Cursor didn’t support ESM extensions until recently.

The fix is already included in version 2.4:

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

If you don’t want to wait for the update, here’s a temporary workaround: After last update PRETTIER stopped working - #19 by deanrie

Also, I noticed your TypeScript settings use vscode.typescript-language-features as the default formatter instead of Prettier. That might also affect this. After updating, double-check that setting if the issue still happens.

1 Like