-
-
Notifications
You must be signed in to change notification settings - Fork 69
Error unable to resolve path to module eslint import/no-unresolved
after upgrading to 4.2.1 from 3.7.0
#396
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
Comments
I'm getting those errors too after upgrading, but only from vscode's eslint extension. |
The new major version uses a napi module: Either way, please provide a minimal but runnable reproduction when reporting issues. |
Restarting the eslint server does make the errors go away, but then whenever I create a new file or move some files around, I have to restart it again for it to properly resolve the new paths. I also didn't experience this on v3.7, but I do on v3.8. EDIT: I take it back, I am still seeing it after downgrading to 3.7. I wonder if there is some other dependency that was upgraded at the same time that is causing it. Sooooooo annoying. 🔥 🐶 ☕ 🔥 |
For me it's the other way around - VSCode's eslint server produces no errors and the cli produces errors :D Description and reproduction steps left under another issues: #393 (comment) |
Please help to try
|
I just upgraded to 4.3.2 and I don't have the errors anymore. I guess I can close this issue. |
Glad to hear! |
I was having the same issue (I have the no errors in CLI, errors in VS Code variant), and for me upgrading to 4.3.2 re-introduces the issue. 3.7.0 still works fine for me. |
@MrPiao Please provide a runnable reproduction to microsoft/vscode-eslint#1994 |
I'll try to find some time to generate one |
I commented in the linked ticket, but I managed to figure out that this is caused by |
After upgrading my projet from
3.7.0
to4.2.1
, all my imports have errorunable to resolve path to module eslint import/no-unresolved
I use ESLint 9 flat config.
There was no errors in version
3.7.0
. I read the docs again and I don't think I need to change anything in my config (or maybe I missed something)You can easily reproduct the issue by cloning my project : docker-express-postgres-boilerplate and upgrading the library
The text was updated successfully, but these errors were encountered: