-
-
Notifications
You must be signed in to change notification settings - Fork 104
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]: Error when trying to integrate the plugin to the eslint flat config file #6448
Comments
I think this might be a yarn only issue. |
It is a yarn bug yarnpkg/berry#2476 There might be a work around by using: You could also try importing
import './.pnp.cjs';
// ... the rest of your config. I'm open to a PR if you find a good fix, there are docs https://yarnpkg.com/features/pnp |
@Jason3S , thank you for your input! It didn't help to be candid. What helps is to set |
There is not much I can do. It really is a Yarn issue: yarnpkg/berry#6335 This plugin uses SyncKit to run the worker. Please try |
A bit of information would be useful:
|
@Jason3S , My bad, sure I will provide you with the info Node: 20.13 Your workaround didn't work. I saw similar error to what I attached to the issue. This time I saw the issue but with SyncKit. I tried to install it and put to to "resolutions". It did not help me whatsoever :( |
I took the time to set it up and try it out. There are other tests to ensure I think the key thing to get it working is to ensure yarn generates the |
@Jason3S , Thank you for your assistance. Your solution did not help me. I still see the very error Do I need to install extra packages that may be dependencies for the plugin? |
Please start with a basic setup and see if it works. Here is a SandBox Link Please make an example that fails. As far as I can tell, it is working as expected. |
@Jason3S , I have just tried to reproduce the issue using an example project locally. I still see the issue. You can check it out yourself by deploying it locally: https://github.com/rimakan/cspell-example-project In order to deploy it locally, make sure you have corepack on your local machine I think this may be caused by the config which is automatically created after executing the command Could you please try this.
|
Thank you for the repo case, I'll take a look. |
The example breaks before cspell is even loaded. Do you have a working example that breaks only after cspell is added? |
@Jason3S , Have you installed dependencies? By running If it doesn’t help, I’ll check it out |
Yes, I did.
Is everything checked into master? |
@Jason3S , Usual developer’s excuse is coming. It worked locally :) I will double check because it really did work (I mean the rest things apart from cspell checker). Also you have given me a brilliant idea. I will check it out as well. P.S. I checked out your issue. My bad, sorry. I was commenting other packages out in order to test things. |
@Jason3S , the plugin works like a charm. I should not have paid attention to the eslint output in the VS Code. Once I ran However, the issue is still present. It can really be a Yarn or even ESLint issue Thank you so much for your assistance! P.S. I fixed the repo's code. You can check out the problem above |
Do you have the latest version of the ESLint plugin? |
@Jason3S , Yeah, I do. My ESLint plugin's version is 3.0.10 which seems to be the latest one bc VS Code does not suggest me updating it. |
@Jason3S |
Can you give more details? Are you seeing the issue when running eslint from the commandline or from VS Code? |
This is an issue between Yarn and VS Code's ESLint extension. I'm not sure how to fix it. Related to yarnpkg/berry#6590 I'm able to reproduce it, but it is a pain to sort out. The issues seem to be related to how Yarn overrides |
@Jason3S |
Kind of Issue
Question
Tool or Library
cspell/eslint-plugin
Version
8.15.5
Supporting Library
Not sure / None
OS
Linux
OS Version
22.04
Description
The ESLint cannot import @cspell/eslint-plugin for some reason
Steps to Reproduce
npx @eslint/migrate-config .eslintrc.json
Expected Behavior
There are no errors
Additional Information
No response
cspell.json
No response
cspell.config.yaml
No response
Example Repository
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: