-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Error: Failed to load plugin 'vue' declared in 'CLIOptions': The argument 'filename' must be a file URL object, file URL string, or absolute path string. Received '' #72
Comments
UPDATE: in fact, in a pure |
Thanks a lot for explanation and sorry for the noise 😘 |
@M1CK431 If this is still an issue for you, one way to get around the problem is to patch it yourself. Open the file return originalResolve.call(this, moduleName, ctx.filePath); and change it to return originalResolve.call(this, moduleName, ctx.filePath || relativeToPath); Then run |
For now, I have just commented |
@mattbrannon saved me ! Yarn berry allow Anyone to make a PR on https://github.com/microsoft/rushstack/blob/a142f4608c1cf92fc937ff386d5db033412873ed/eslint/eslint-patch/src/modern-module-resolution.ts#L233-L241 ? |
FYI in case anyone comes across this - it is fixed. see this comment for details |
Describe the bug
Can't format a document using CTRL+MAJ+I (aka
document.action.format
). However it works as expected while saving the file (despite the error message).In output section, I have the following error:
The error occurs each time I press CTRL+MAJ+I and when I save the document. The document is formatted only when I save it.
To Reproduce
Steps to reproduce the behavior:
.vue
file, then press CTRL+MAJ+I.Expected behavior
The document should be formatted and no error should appears in the output
Example Project
I'm very sorry but it happens in a closed source project of my company. I can't provide the source code.
Screenshots
![image](https://user-images.githubusercontent.com/31622263/184163152-10330a93-486a-497c-b7dc-6d1e8b265f2b.png)
Here is all extensions installed in vscode (dunno if it could be useful of not):
Also here is my vscode config:
And finally the relevant part of my
package.json
:Versions:
System Specifications:
Additional context
I have another project (closed source too) based on vue-cli which works perfectly with the same vscode configuration and the same eslint/prettier config and version. Also, in both project, vscode is started from a terminal directly in the root folder of the project (where stands
.git
folder) usingcode .
. Is this issue related tovite
based project? 🤔The text was updated successfully, but these errors were encountered: