I am writing this after spending an hour trying to fix Prettier. The errors I got are the ones below
Quick fix: Invalid prettier configuration file detected
––– views
0 min read
Invalid prettier configuration file detected. Error: ENOENT: no such file or directory, open '/.prettierrc'
If you don’t already have the .prettierrc file in the root folder of your project, add it and see if it works for you, otherwise, follow the steps below.
That did it for me, hope it helps.
Here’s an example .prettierrc
JSON
{".singleQuote": true,"tabWidth": 2,}
To comment please authenticate