prettier-vscode icon indicating copy to clipboard operation
prettier-vscode copied to clipboard

Unable to resolve string JSON config which resolves a pure ESM prettier config

Open JounQin opened this issue 6 months ago • 0 comments
trafficstars

Summary

// .prettierrc
"@1stg/prettier-config"

Github Repository to Reproduce Issue

https://github.com/un-ts/preversion

Steps To Reproduce:

  1. yarn install
  2. Change something in package.json and exec format command

Expected result

No error

Actual result

Error

Additional information

Image

VS Code Version:

版本: 1.100.1 提交: 91fa95bccb027ece6a968589bb1d662fa9c8e170 日期: 2025-05-09T15:43:50.040Z Electron: 34.5.1 ElectronBuildId: 11369351 Chromium: 132.0.6834.210 Node.js: 20.19.0 V8: 13.2.152.41-electron.0 OS: Darwin arm64 24.4.0

Prettier Extension Version:

11.0.0

OS and version:

macOS 15.4.1 (24E263)

Prettier Log Output

["INFO" - 08:30:41] Formatting file:///Users/JounQin/Workspaces/GitHub/configs/package.json
["ERROR" - 08:30:41] Invalid prettier configuration file detected.
{}

JounQin avatar May 15 '25 00:05 JounQin