You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js
/Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap-amd.js
/Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap-fork.js
at Module._resolveFilename (node:internal/modules/cjs/loader:987:15)
at i._resolveFilename (node:electron/js2c/utility_init:17:840)
at a (/Users/z/.vscode/extensions/voorjaar.windicss-intellisense-0.21.6/out/dependencies.js:73:2512)
at /xxxxxx/node_modules/.pnpm/registry.npmmirror.com+prettier@2.8.7/node_modules/prettier/index.js:38119:25
at Array.map ()
at Object.load (/xxxxx/node_modules/.pnpm/registry.npmmirror.com+prettier@2.8.7/node_modules/prettier/index.js:38114:65)
at Object.load [as loadPlugins] (/xxxxx/node_modules/.pnpm/registry.npmmirror.com+prettier@2.8.7/node_modules/prettier/index.js:16147:23)
at /xxxx/node_modules/.pnpm/registry.npmmirror.com+prettier@2.8.7/node_modules/prettier/index.js:38181:24
at Object.format (/xxx/node_modules/.pnpm/registry.npmmirror.com+prettier@2.8.7/node_modules/prettier/index.js:38197:12)
at t.default.format (/Users/z/.vscode/extensions/esbenp.prettier-vscode-9.10.4/dist/extension.js:1:14731)
at async t.PrettierEditProvider.provideEdits (/Users/z/.vscode/extensions/esbenp.prettier-vscode-9.10.4/dist/extension.js:1:11417)
at async B.provideDocumentFormattingEdits (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:100:46615)
["INFO" - 4:53:24 PM] Formatting completed in 4ms.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
保存 .ts 文件的时候vscode 的 prettier 状态栏红了
["INFO" - 4:53:24 PM] Formatting file:///...xx./src/store/modules/permission.ts
["INFO" - 4:53:24 PM] Using config file at '...xx./.prettierrc.js'
["ERROR" - 4:53:24 PM] Error resolve node module 'prettier-plugin-packagejson'
["ERROR" - 4:53:24 PM] Cannot find module 'prettier-plugin-packagejson'
Require stack:
Error: Cannot find module 'prettier-plugin-packagejson'
Require stack:
at i._resolveFilename (node:electron/js2c/utility_init:17:840)
at g.resolve (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js:4:709)
at t.ModuleResolver.resolveNodeModule (/Users/z/.vscode/extensions/esbenp.prettier-vscode-9.10.4/dist/extension.js:1:6553)
at /Users/z/.vscode/extensions/esbenp.prettier-vscode-9.10.4/dist/extension.js:1:6787
at Array.map ()
at t.ModuleResolver.resolveConfigPlugins (/Users/z/.vscode/extensions/esbenp.prettier-vscode-9.10.4/dist/extension.js:1:6717)
at t.ModuleResolver.getResolvedConfig (/Users/z/.vscode/extensions/esbenp.prettier-vscode-9.10.4/dist/extension.js:1:5974)
at async t.default.format (/Users/z/.vscode/extensions/esbenp.prettier-vscode-9.10.4/dist/extension.js:1:13308)
at async t.PrettierEditProvider.provideEdits (/Users/z/.vscode/extensions/esbenp.prettier-vscode-9.10.4/dist/extension.js:1:11417)
at async B.provideDocumentFormattingEdits (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:100:46615)
["INFO" - 4:53:24 PM] Using ignore file (if present) at /xxxxxxx/.prettierignore
["INFO" - 4:53:24 PM] File Info:
{
"ignored": false,
"inferredParser": "typescript"
}
["INFO" - 4:53:24 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 4:53:24 PM] Prettier Options:
{
"filepath": "/xxxxx/src/store/modules/permission.ts",
"parser": "typescript",
"useTabs": false,
"tabWidth": 2,
"printWidth": 100,
"endOfLine": "auto",
"semi": true,
"vueIndentScriptAndStyle": true,
"singleQuote": true,
"trailingComma": "all",
"proseWrap": "never",
"htmlWhitespaceSensitivity": "strict",
"plugins": [
"prettier-plugin-packagejson"
]
}
["ERROR" - 4:53:24 PM] Error formatting document.
["ERROR" - 4:53:24 PM] Cannot find module 'prettier-plugin-packagejson'
Require stack:
Error: Cannot find module 'prettier-plugin-packagejson'
Require stack:
at i._resolveFilename (node:electron/js2c/utility_init:17:840)
at a (/Users/z/.vscode/extensions/voorjaar.windicss-intellisense-0.21.6/out/dependencies.js:73:2512)
at /xxxxxx/node_modules/.pnpm/registry.npmmirror.com+prettier@2.8.7/node_modules/prettier/index.js:38119:25
at Array.map ()
at Object.load (/xxxxx/node_modules/.pnpm/registry.npmmirror.com+prettier@2.8.7/node_modules/prettier/index.js:38114:65)
at Object.load [as loadPlugins] (/xxxxx/node_modules/.pnpm/registry.npmmirror.com+prettier@2.8.7/node_modules/prettier/index.js:16147:23)
at /xxxx/node_modules/.pnpm/registry.npmmirror.com+prettier@2.8.7/node_modules/prettier/index.js:38181:24
at Object.format (/xxx/node_modules/.pnpm/registry.npmmirror.com+prettier@2.8.7/node_modules/prettier/index.js:38197:12)
at t.default.format (/Users/z/.vscode/extensions/esbenp.prettier-vscode-9.10.4/dist/extension.js:1:14731)
at async t.PrettierEditProvider.provideEdits (/Users/z/.vscode/extensions/esbenp.prettier-vscode-9.10.4/dist/extension.js:1:11417)
at async B.provideDocumentFormattingEdits (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:100:46615)
["INFO" - 4:53:24 PM] Formatting completed in 4ms.
Beta Was this translation helpful? Give feedback.
All reactions