bug(devkit): formatFiles
uses prettier v3 async api in context with prettier v2 which causes intermittent pipeline failures within tests
#23501
Labels
Current Behavior
formatFiles
uses async prettierformat
APIExpected Behavior
formatFiles
should use API based on prettier versions, quick fix should be using synchronous API that exists within prettier v2 (which all nx workpsaces should be using).If user has prettier v3 installed a fallback to
@prettier/sync
should happen under the hood.GitHub Repo
microsoft/fluentui#31408
Steps to Reproduce
Nx Report
Failure Logs
No response
Package Manager Version
yarn v1
Operating System
Additional Information
Related issues #19519 cc @AgentEnder
The text was updated successfully, but these errors were encountered: