Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JounQin opened this issue Jan 5, 2024 · 0 comments

Comments

@JounQin
Copy link
Member

JounQin commented Jan 5, 2024

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant