Does Prettier formatter works for your Cursor?

It does not work for me

suddenly it works after restarting Cursor

Edit: Make sure the file path in the prettier extension is correct, I was missing a period and it was failing.

I use vscode plugin Prettier - Code formatter and settings.json

{
    "editor.formatOnSave": true,
    "[javascript]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    }
}

or typescript and javascript

{
    "editor.formatOnSave": true,
    "[javascript][typescript]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    }
}