-
-
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
Resolve error: require(...).promisify is not a function (import/no-unresolved) #1454
Comments
It seems cuz node ship with electorn which vscode using version is 7.9.0, and this line use the new promisify api ship with node 8.x and break the eslint, use a vendor lib do the promisify work can resolve this issue. A workaround is specify |
Thanks! |
FYI, I can't reproduce the problem with a project created by the latest CLI + VSCode + ESLint plugin. It's weird because your editor's ESLint plugin should not attempt to lint library code, so that's definitely a configuration problem for your plugin. |
It's actually linting the sample project's code. I don't understand your point of view. It's clear here that this project and the plugin are incompatible. I'm just trying to get a fix (it can also be a extra configuration of the plugin) and get that fix documented if it needs to be. Thanks @thomasmichaelwallace for your extra information! I hope it will help to find a solution. |
Suddenly my project is showing this error too. Dunno how to fix it atm. EDIT: followed this #1454 (comment) and the errors are not showing anymore. |
Just so you know, this got fixed under #1473 . |
Version
3.0.0-beta.15
Reproduction link
https://codesandbox.io/s/vue
Steps to reproduce
Create a sample Vue project.
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?
Several eslint import problems like these:
Please tell me if you need more information (especially versions but nearly everything is up to date), I'll be happy to help!
The text was updated successfully, but these errors were encountered: