In my project root, I have an .prettierrc.json file dictating formatting. I have a setup imported from vscode, working there but causes an error message in Cursor.
In cursor I get this error message:
["INFO" - 11:04:19] Formatting file:///Users/qludelw/dev/aws/.vscode/settings.json
["ERROR" - 11:04:19] Invalid prettier configuration file detected.
["ERROR" - 11:04:19] ENOENT: no such file or directory, open '/.prettierrc.json'
Error: ENOENT: no such file or directory, open '/.prettierrc.json'
["ERROR" - 11:04:19] Invalid prettier configuration file detected. See log for details.
Seams to be a /
too much in /.prettierrc.json
, right? A bug? I’m using Cursor Version: 0.42.5 (on VSCode Version: 1.93.1) on OSX Sonoma 14.6.1 on M1,
In vscode (Version: 1.95.3), the same command from the same folder works (and has been working for years) gives this (reduced) output instead:
["INFO" - 11:07:00] Formatting file:///Users/qludelw/dev/aws/.vscode/settings.json
["INFO" - 11:07:00] Using config file at /Users/qludelw/dev/aws/.prettierrc.json
["INFO" - 11:07:00] Using ignore file (if present) at /Users/qludelw/dev/aws-/.prettierignore
["INFO" - 11:07:00] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 11:07:00] Prettier Options:
{
"filepath": "/Users/qludelw/dev/aws/.vscode/settings.json",
"parser": "json",
"trailingComma": "es5",
"tabWidth": 2,
"semi": false,
"singleQuote": true
}
["INFO" - 11:07:00] Formatting completed in 9ms.