본문 바로가기

Error Log

[error] No files matching the pattern were found : Prettier (VSCode)

 

 

분명!

책에서 하라는 대로 했는데!

> react-sample@0.1.0 prettier-format
> prettier --config .prettierrc 'src/**/*.ts' --write

[error] No files matching the pattern were found: "'src/**/*.ts'".

이런 오류가 나요!


< 해결 > 

package.json 수정

'src/**/*.ts' -> src/**/*.ts

  "scripts": {
    ...
    "prettier-format": "prettier --config .prettierrc src/**/*.ts --write"
  },

 

허무... 하지만 됐으니 다행~