ES-Lint cannot resolve path to module

It works in Visual Studio Code but not in Webstorm

 

If any more information for you to make guesses is needed, hit me up.

0
6 comments

btw. i am (in both cases, whether im using vsc or webstorm) using a configuration file “.eslintrc.js”

0

and I am using WSL 2 with Ubuntu as the distro

0

What does your project setup look like, is it a monorepo? Please could you share screenshots of Settings | Languages & Frameworks | JavaScript | Code Quality Tools | ESLint and Settings | Languages & Frameworks | Node.js pages?

0

 

 

I am using WSL 2. Might the path to the node - Executable be the problem?

0

Hi Elena. I think i solved it. It seems it was due to me using it from WSL 2 Ubuntu 20.04 while having the windows node.exe specified.

0

Yes, this must be the issue. When working the projects stored in WSL, please make sure to select WSL Node interpreter in Settings | Languages & Frameworks | Node.js; using a Windows local one instead usually results in multiple issues running language services.

0

Please sign in to leave a comment.