Hey thanks for the report, this is a known issue - it’s already fixed in version 2.4.
Try this:
- Update Cursor to version 2.4 or newer: Cursor Settings > Beta > Early Access
- After updating you can switch back to Prettier v12+ - ESM is now supported
- Reload the window:
Ctrl + Shift + P>Developer: Reload Window
If the issue persists after updating to 2.4+ let me know what exact version of Cursor you’re running.
Similar topic with a solution: After last update PRETTIER stopped working