-
-
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
Use of promisify breaks compatibility with vscode eslint @vue/airbnb #1473
Comments
n.b. for those hitting this bug, deleting the offending `.promisfy' doesn't seem to cause any adverse effects with an existing project- which allows you to continue linting from within vscode. |
Mine extends |
As I said:
|
@yyx990803 it's not trying to lint the dependency- look at the chain I've shown you above- it's that the loading of the webpack configuration causes the promisify to come up. |
It happens with dbaeumer.vscode-eslint 1.4.12 + vscode-insiders 1.24.0 (f67e6397855fb25becbdf33df185f96da7fdd108) +
|
For the error to occur you must go to a file that includes an import |
Your description was missing the |
I'm glad that you can now reproduce it and I'm sorry I had not noticed that specific not included in @sebj54's case. As some feedback though- aggressively closing the issue makes it look like there's no future discussion (hence me raising a second issue), and not having an issue to work against means that instead of putting together a PR to try and resolve this problem I've instead focused all my time trying to get it acknowledged. This isn't the first time I've been put off contributing to this project (#947). |
Maybe next time you could follow the issue requirements (that by the way we clearly indicate) and post a link to an actual runnable reproduction of your problem, and then less time will be wasted. 🐈 |
OK. Thanks for the feedback. |
WTF? There was an actual case reproduction in my issue. It is clearly written:
And actually, there is the @/ import bit in this file... So, @yyx990803, this is exactly why I provided an actual reproduction. |
@sebj54 that was not directed at you. I did read your issue too fast. |
@sebj54 I just re-read your issue. No, you didn't provide an actual reproduction.
You issue actually provided less information than this one. |
@yyx990803 You're right, my bad... I understand that you don't have to lose too much time recreating the context of the issues, but you know your projects very well and it can be very hard for us (users) to figure out what we did wrong. I'm not blaming you here, just trying to explain what happened and maybe enhance your issues. Thanks for having taken your time to explain what was wrong in my issue. 🙏 |
Version
3.0.0-beta.15
Reproduction link
https://codesandbox.io/s/vue
Steps to reproduce
Create a sample Vue project.
Ensure eslint config includes: { "extends": [
"plugin:vue/recommended",
"@vue/airbnb"
] }
Open project in VS Code with eslint plugin.
Open "Home.vue" file, wait for errors to come.
What is expected?
No error in "Problems" tab.
What is actually happening?
Resolve error: require(...).promisify is not a function (import/no-unresolved)
Resolve error: require(...).promisify is not a function (import/no-extraneous-dependencies)
Resolve error: require(...).promisify is not a function (import/no-duplicates)
Resolve error: require(...).promisify is not a function (import/extensions)
Resolve error: require(...).promisify is not a function (import/no-named-as-default)
Resolve error: require(...).promisify is not a function (import/no-named-as-default-member)
Unable to resolve path to module '@/components/HelloWorld.vue'. (import/no-unresolved)
Why This Happens
vue-cli/packages/@vue/cli-shared-utils/index.js
Line 17 in cd88b47
@vue/airbnb
The text was updated successfully, but these errors were encountered: