Skip to content

Unexpected end of JSON input while parsing empty string #865

@rodhash

Description

@rodhash

Hi

I'm getting the same error msg independently of what I put in my config file.

error:

2025-03-09 17:11:03[ERROR] Formatter 'prettierd' error: JSONError: JSON Error in /Users/rodhash/.prettierrc.json:
Unexpected end of JSON input while parsing empty string

I tried to mess with my .prettierrc.json but apparently it doesn't matter, whatever I add in there I always get the same error msg.

If I try this:

{
  "printWidth": 80,
  "tabWidth": 2,
  "useTabs": false,
  "semi": true,
  "singleQuote": false,
  "trailingComma": "none",
  "bracketSpacing": true,
  "arrowParens": "avoid"
}

Or this:

{
  "tabWidth": 2
}

Now if I use prettier I don't get any error. Those are happening only with prettierd.

Any idea why I'm having trouble reading my .prettierrc.json?

prettierd: 0.26.1
conform: db8a4a9
nvim: v0.11.0-dev-1517

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions