Unable to run prettierd run with a prettierrc configuration.
See original GitHub issuePrettierd runs fine when I provide no .prettierrc.json
, but when I add the file in my root I get the following error -
C:\Users\yashg\AppData\Local\nvim>prettierd test\foo.ts
TypeError [ERR_INVALID_ARG_TYPE]: The "list" argument must be an instance of Array. Received null
at Function.concat (buffer.js:550:11)
at Object.readFileAfterClose (internal/fs/read_file_context.js:51:23)
at tick (internal/fs/read_file_context.js:105:28)
at processTicksAndRejections (internal/process/task_queues.js:79:21) {
code: 'ERR_INVALID_ARG_TYPE'
}
I am using Neovim in Windows along with efm-language-server My configuration of prettier looks like -
{formatCommand = "prettierd ${INPUT}", formatStdin = true}
Any idea?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:15 (7 by maintainers)
Top Results From Across the Web
CLI - Prettier
Use the prettier command to run Prettier from the command line. To run your locally installed version of Prettier, prefix the command with...
Read more >Unable to resolve custom configuration module #1289 - GitHub
It seems that version 4.0.0 released a few hours ago breaks importing/using custom Prettier configs. Downgrading to 3.20.0 fixes the issue. I ...
Read more >How to configure Prettier and VSCode - Gleb Bahmutov
For example, the screenshot below shows that Prettier did not run because the project does not have Prettier configuration file like .prettierrc ......
Read more >Prettier vscode extension ignoring config files - Stack Overflow
I set tabWidth to 1 in the .prettierrc file. When I run "npx prettier --write ." the prettier package properly formats the test.ts...
Read more >Prettier | WebStorm Documentation - JetBrains
Run Prettier automatically on save · Open the Settings/Preferences dialog ( Ctrl+Alt+S ), go to Languages & Frameworks | JavaScript | Prettier, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jvmiert I’ll try to spin up a windows vm to investigate this. Sorry for the back and forth.