prettier / prettier-vscode

Visual Studio Code extension for Prettier
https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode
MIT License
5.14k stars 455 forks source link

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

Open JounQin opened 8 months ago

JounQin commented 8 months ago

Summary

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

Github Repository to Reproduce Issue

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

Steps To Reproduce:

yarn install

Change something in package.json and exec prettier command

Expected result

No error

Actual result

Error

Additional information

N/A

VS Code Version:

版本: 1.85.1
提交: 0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2
日期: 2023-12-13T09:48:16.874Z
Electron: 25.9.7
ElectronBuildId: 25551756
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Darwin arm64 23.2.0

Prettier Extension Version:

v10.1.0

OS and version:

macOS Sonoma 14.2.1

Prettier Log Output

["INFO" - 23:34:38] Extension Name: esbenp.prettier-vscode.
["INFO" - 23:34:38] Extension Version: 10.1.0.
["INFO" - 23:37:54] Formatting file:///Users/JounQin/Workspaces/GitHub/preversion/package.json
["ERROR" - 23:37:55] Invalid prettier configuration file detected.
{}
["ERROR" - 23:37:55] Invalid prettier configuration file detected. See log for details.
["INFO" - 23:38:02] Formatting file:///Users/JounQin/Workspaces/GitHub/preversion/package.json
["ERROR" - 23:38:02] Invalid prettier configuration file detected.
{}
["ERROR" - 23:38:02] Invalid prettier configuration file detected. See log for details.
github-actions[bot] commented 1 month ago

This issue has been labeled as stale due to inactivity. Reply to keep this issue open.