Skip to content

prettier not found #1244

@firefart

Description

@firefart

Since yesterday I get the following error when running go tool templ fmt .

(✗) internal/diff/diff.templ [ error=failed to format file "internal/diff/diff.templ": prettier error: unable to format with command ["/usr/bin/zsh" "-c" "prettier --use-tabs --stdin-filepath $TEMPL_PRETTIER_FILENAME"], output: "zsh:1: command not found: prettier\n", error: exit status 127 ]

I see there is some new logic to run prettier when it's found, so I guess there is a bug in the logic

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