creyD / prettier_action

GitHub action for running prettier on your projects pull requests
MIT License
276 stars 87 forks source link

[BUG] Not able to recognize parser when running prettier_version by default on latest version #97

Closed nerealegui closed 1 year ago

nerealegui commented 2 years ago

When running the action on Prettier's latest version with prettier_version = false the following error is thrown:

Error: No parser and no file path given, couldn't infer a parser.

At the time this issue is open, the latest version is 2.5.1.

The configuration in the YML file is the following,

name: Execute Prettier Check
        uses: creyD/prettier_action@v4.2
        with:
          dry: true
          only_changed: true
          prettier_options: --check
          github_token: ${{ secrets.GITHUB_TOKEN }}
nerealegui commented 2 years ago

I got some more insights, I stopped facing the error by downgrading the prettier version. I saw the same error coming from Prettier itself without the action.

creyD commented 1 year ago

Alright, so could we close this here? Were you able to solve this?

nerealegui commented 1 year ago

Yes, I think we can. Thank you!