-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
VSCode shows eslint error with '@vue/airbnb' when using webpack aliases in import paths #2546
Comments
Please share the repository |
|
Do |
yes, running successful. |
and |
So the error is only in your editor? Then I think your editor's eslint integration doesn't play nice with eslint-airbnb ? |
Possibly related: microsoft/vscode-eslint#405 |
I use Vscode, I don't know. OK, I try to see it. |
1 upgrade vscode editor |
Actually, red herring. The project folder is a subdirectory of a larger project. (SublimeLinter-)eslint was getting confused.
|
Then you should probably open an issue in their repository. We can't influence how your editor plugins work |
No longer reproducible with the latest versions of vscode, vscode-eslint, @vue/cli… |
Same problem with you! When I open the subdirectory only, everything works well. But if I open the large project, vscode shows no-unresolved error. vscode: v1.30.2 |
Thanks for that - spent a good hour on this one trying to figure out why it wasn't resolving. |
In case anyone else is still struggling with this, I realized the same thing as others that the issue was caused by my front-end code being in a sub-directory of the main project. To fix, add this to your settings.json (change "client" to the name of your front-end sub-directory):
|
Version
3.0.3
Node and OS info
Node 10.7.0
Steps to reproduce
Vscode will throw error, but app running successful.
What is expected?
no error info
What is actually happening?
throw error info
The text was updated successfully, but these errors were encountered: