Skip to content
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

Eslint server could not found config file. #1822

Open
tzcodingjs opened this issue Apr 7, 2024 · 14 comments
Open

Eslint server could not found config file. #1822

tzcodingjs opened this issue Apr 7, 2024 · 14 comments
Labels
info-needed Issue requires more information from poster

Comments

@tzcodingjs
Copy link

develop enviroment:
vscode: 1.88.0
nodejs: 18.19.1
vscode-eslint: 2.4.4

When open project with vscode always show error:

issue

@alfjesus
Copy link

alfjesus commented Apr 7, 2024

Upgrade your vscode-eslint to v3.0.5 (pre-release). This solved it for me 🙂. It seems that the current stable version can't handle eslint's new flat config file...

@dbaeumer
Copy link
Member

dbaeumer commented Apr 8, 2024

That is correct. 2.4.4. has limited support for flat configs. @tzcodingjs do things work for you with 3.0.5 pre-release?

@dbaeumer dbaeumer added the info-needed Issue requires more information from poster label Apr 8, 2024
@tzcodingjs
Copy link
Author

That is correct. 2.4.4. has limited support for flat configs. @tzcodingjs do things work for you with 3.0.5 pre-release?

3.0.5 it's not worked, but I rolling back to 2.2.6 everything is ok So odd.

@tzcodingjs
Copy link
Author

Upgrade your vscode-eslint to v3.0.5 (pre-release). This solved it for me 🙂. It seems that the current stable version can't handle eslint's new flat config file...

Thanks! But it's not worked.

@dbaeumer
Copy link
Member

dbaeumer commented Apr 8, 2024

That is strange. Can you provide me with a GitHub repository I can clone with a minimal setup that demos this.

@tzcodingjs
Copy link
Author

That is strange. Can you provide me with a GitHub repository I can clone with a minimal setup that demos this.

This project https://github.com/Chanzhaoyu/chatgpt-web

@dbaeumer
Copy link
Member

dbaeumer commented Apr 9, 2024

@tzcodingjs can you please provide me with a repository with a minimal setup. This looks like a normal development repository.

@Hoody91
Copy link

Hoody91 commented Apr 12, 2024

Upgrade your vscode-eslint to v3.0.5 (pre-release). This solved it for me 🙂. It seems that the current stable version can't handle eslint's new flat config file...

This worked fine for me, although I did have to restart vscode multiple time before it started working.

@ShravanSunder
Copy link

ShravanSunder commented Apr 12, 2024

I had this issue with eslint v9. rolling back to 8.5x fixed this for me. I'm not using flat config, but the old config.
I had useFlatConfig in settings.json to false

@dbaeumer
Copy link
Member

@ShravanSunder can you please provide me with a GitHub repository I can clone with a minimal setup that demos this.

I do have a test case for 9.0 with the old rc based config and the works for me:

So I would be interested to understand why this fails for you.

@dotspencer
Copy link

Downgrading to eslint version 8.57.0 resolved the issue for me

@ShravanSunder
Copy link

As of right now, eslint v9, old eslint config and vscode are incompatible.

@dbaeumer
Copy link
Member

@ShravanSunder @dotspencer do you have a GitHub repository I can clone that demos thus.

And did you both use the pre-release version of ESLint (3.0.5)

@sydneytan
Copy link

Upgrade your vscode-eslint to v3.0.5 (pre-release). This solved it for me 🙂. It seems that the current stable version can't handle eslint's new flat config file...

it worked! thanks so much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

7 participants