Comments (4)
I am having the same issue. This has started recently. I tried reverting to the previous version, but to no avail. Also of interest, I have other VSCode workspaces in which Prettier is working fine.
from prettier-vscode.
I am also having this issues in one of my workspaces
["ERROR" - 3:29:58 PM] Error resolving prettier configuration for <file>.ts
["ERROR" - 3:29:58 PM] this.prettierModule.resolveConfigFile is not a function
TypeError: this.prettierModule.resolveConfigFile is not a function
at t.PrettierMainThreadInstance.resolveConfigFile (<path>/.vscode/extensions/esbenp.prettier-vscode-10.4.0/dist/extension.js:1:18684)
at t.ModuleResolver.resolveConfig (<path>/.vscode/extensions/esbenp.prettier-vscode-10.4.0/dist/extension.js:1:6856)
at t.ModuleResolver.getResolvedConfig (<path>/.vscode/extensions/esbenp.prettier-vscode-10.4.0/dist/extension.js:1:7735)
at async t.default.format (<path>/.vscode/extensions/esbenp.prettier-vscode-10.4.0/dist/extension.js:1:14767)
at async t.PrettierEditProvider.provideEdits (<path>/.vscode/extensions/esbenp.prettier-vscode-10.4.0/dist/extension.js:1:12876)
But other workspaces are having no issues (yet)
from prettier-vscode.
For me the root cause of this was related to this issue found over in Microsoft's vscode-eslint repo. There's a lot at play there, so I'll let the issue speak for itself.
from prettier-vscode.
I am also having this issues in one of my workspaces
["ERROR" - 3:29:58 PM] Error resolving prettier configuration for <file>.ts ["ERROR" - 3:29:58 PM] this.prettierModule.resolveConfigFile is not a function TypeError: this.prettierModule.resolveConfigFile is not a function at t.PrettierMainThreadInstance.resolveConfigFile (<path>/.vscode/extensions/esbenp.prettier-vscode-10.4.0/dist/extension.js:1:18684) at t.ModuleResolver.resolveConfig (<path>/.vscode/extensions/esbenp.prettier-vscode-10.4.0/dist/extension.js:1:6856) at t.ModuleResolver.getResolvedConfig (<path>/.vscode/extensions/esbenp.prettier-vscode-10.4.0/dist/extension.js:1:7735) at async t.default.format (<path>/.vscode/extensions/esbenp.prettier-vscode-10.4.0/dist/extension.js:1:14767) at async t.PrettierEditProvider.provideEdits (<path>/.vscode/extensions/esbenp.prettier-vscode-10.4.0/dist/extension.js:1:12876)
But other workspaces are having no issues (yet)
On my side the issue seems to be solved on its own
Surely an update did it, but is unknown to me if it was from vscode
or prettier
from prettier-vscode.
Related Issues (20)
- "prettier.configPath" in vscode's settings.json is ignored HOT 2
- Prettier not working HOT 1
- The vscode extension is inconsistent with the default value of the prettier configuration file HOT 1
- Inconsistency in line break formatting in Java with Prettier in VS Code
- Ignore `CODEOWNERS` file HOT 1
- semi
- Ability to use/configure Format On Save to work with prettier configs within folders
- How to set the `rangeStart` configuration for the `prettier-vscode` extension in VS Code? HOT 2
- Prettier formatting yaml files even though a different formatter is selected... HOT 2
- Notification of breaking api change with v1.92 release of VS Code HOT 1
- Unexpectedly resolving globally installed prettier version
- Prettier extesion not working on version 10.4.0 HOT 3
- Markdown formula incorrectly formatted HOT 1
- use prettier's builtin configuration instead of falling back to VS Code configuration when locally installed prettier is used HOT 2
- [FR] `prettier.pluginsPath` HOT 1
- Include PHP Formatting Options In VSCode Extension
- Prettier error spawnSync EINVAL when formatting Apex classes HOT 7
- Option to let prettier determine format options instead of falling back to VSCode settings when project doesn't contain explicit prettier config
- Extension causes high cpu load
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prettier-vscode.