Skip to content

oxfmt: experimentalTailwindcss fails to format non-js files(html, angular, vue) on versions after 0.28 #19255

@MatthijsKok

Description

@MatthijsKok

with .oxfmtrc.jsonc as

{
  "experimentalTailwindcss": {}
}

and index.html as

<html lang="en"></html>

Oxfmt version 0.28.0 works as expected.

pnpm dlx oxfmt@0.28.0 --check index.html
Checking formatting...

All matched files use the correct format.
Finished in 415ms on 1 files using 16 threads.

Oxfmt versions after 0.28.0 crash

pnpm dlx oxfmt@0.30.0 --check index.html
Checking formatting...

  × Failed to format file with external formatter: D:\projects\redacted\index.html
  │ JS formatFile promise rejected: GenericFailure, [object Object]                                                                                                                                       
Error occurred when checking code style in the above files.
pnpm dlx oxfmt@latest --check index.html
Checking formatting...

  × Failed to format file with external formatter: D:\projects\redacted\index.html
  │ JS formatFile promise rejected: GenericFailure, [object Object]
Error occurred when checking code style in the above files.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions