-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
bug: TypeError: Cannot read property 'get' of undefined #1844
Comments
I can't reproduce this. That JetBrains thread points out that there is, in fact, a difference between proper/supported eslint usage - invoking it via the CLI once per process - and keeping alive a dev server. This plugin maintains some internal caching; specifically, it builds up a module graph of your entire codebase so it can lint across files. This works fine with other IDEs/editors, so that suggests it's an issue with JetBrains' implementation, specifically. |
There is also a problem with Visual Studio Code However, it's less critical since it doesn't lead to problems with other rules. |
Originally reported problem with creating a new file also is easily reproducible in VS Code The only difference here, that others lint warnings work here, but |
There’s really nothing an eslint plugin can do with something that’s running eslint improperly :-/ there’d need to be some kind of feature in eslint itself to handle caching mechanisms. |
Same here on neovim, could you solve it? |
Originally discovered at https://youtrack.jetbrains.com/issue/WEB-45210
How to reproduce?
/src/Components/
with any code with exports. I used the next one with extra space before bracesWhat is the expected result
I expect to see the warning from eslint about extra space, etc
What happened instead?
Eslint fails completely for the whole file with error
Recorded example
This bug is really critical for me. However, dev from JetBrain's side said that there is something wrong from the plugin side. Please fix it from your side or give advice on how to fix it
The text was updated successfully, but these errors were encountered: