-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Failed to load plugin '@nrwl/nx' declared in 'apps/project/.eslintrc.json » ../../../.eslintrc.js#overrides[1]': Cannot find module '@swc/core-linux-x64-gnu' #8969
Comments
Same goes for Win10 with
What I was able to discover until now is that the machine was not able to unlink a file during the installation process and caused the required files not to have been added.
|
Hi @jogelin, thank you for reporting the issue. You should definitely not install Let me know if this helped. |
@JosefBredereck Thank you for reporting. I will have a look at the windows issue soon. In the meantime can you check this thread, since the issue lies within @swc-project swc-project/swc#1351 |
@meeroslav this is ok now. You were right, just the |
Good to hear that! Thank you for swift response |
Hi, I am having the same issue, but not with yarn but with npm. I have checked the package-lock.json where I find the "@swc/core-linux-x64-gnu" as an "optionalDependency" in "node_modules/@swc/core" and "node_modules/@nrwl/eslint-plugin-nx" and and as "requires" in "@nrwl/eslint-plugin-nx" and "@swc/core". I am using the |
Hi, I am having kind of the same issue. Updated nx to latest and deleted node_modules/package-lock. And I assume this is the problem why vscode cant underline eslint errors. Tho when running |
@JosefBredereck I have just checked the windows and everything works as expected. If you have an issue, please follow the following steps:
That should ensure your lock file has properly picked up missing The same solution applies also to @bubblegumsoldier. |
@kasparsuvi1, the workspace rules are separated from the standard linter. Can you tell me on which file you see these errors? Did you try restarting the ESLint server in VSCode? Check if you have following folder:
|
@meeroslav , thanks for recommendations. I dont get Should i change my os architecture? |
It should be marked as optional. That is intentional. What that means is that if the underlying architecture doesn't support it, it will not break the Based on your error, it seems that you have the correct one installed already ( Perhaps @Brooooooklyn has some insights? |
One possible scenario is that the 32-bit version of Node.js is installed and the 64-bit version of VSCode is installed. That is why |
Thank you @Brooooooklyn, I didn't consider that angle. @kasparsuvi1 are you running lint from the terminal or using the plugin from the IDE? |
From the terminal linting works, plugin from the IDE does not. Maybe I have messed up versions of node/vscode, trying to fix reinstalling those in 64-bit versions. Thanks for the help! Edit: And it fixed the problem, thank you again! Never spring to my mind that it would be connected and that I had 32-bit node installed... |
@meeroslav but it's now not optional anymore https://github.com/nrwl/nx/pull/9142/files or did I misinterpret something |
@zoechi if you look at
|
Had this same issue in my CI pipeline... Used to have:
Changed to:
Working again... |
Yeah |
@meeroslav I've tried all of the above but I'm still having the issue. |
Hey, @shaharkazaz I'm sorry for your trouble. I created a PR that solve it: jsverse/transloco#552 |
You should also update the node version to v16 on your CI runs, since this is the LTE now. |
@meeroslav I appreciate the PR! |
Perhaps you should consider updating to node v16. Not sure if that's the issue. Either way, the lint passed with the new lock file. Btw, your CI was running |
I'm also randomly seeing this issue in my CI environment (ADO, ubuntu-latest), it seems to fix itself after doing several iterations of: clearing nx cache, deleting |
@StephenStrickland we recently switched from using Unfortunately, the downside is that |
@meeroslav thanks for the reply, implemented |
This is probably problem related to npm and package-lock.json. I had the same problem on CI (docker), when package-lock.json was generated on windows by npm@8.3.1. I upgraded npm to 8.5.1 and regenerate package-lock.json (still on windows), and everything start works locally and on CI :) |
When this happened to me with github actions failing to install the
Edit 2: problem resurfaced after rebuilding package-lock today despite having both deps. Still looking for a permanent fix. |
@nrwl/cli is replaced by nx, so you don't actually need them both. You just need the Nx. And Nx-examples repo actually has it as a dependency: https://github.com/nrwl/nx-examples/blob/ff6a4856d3d5337205362d264b681fe849dbf7a0/package.json#L101 |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
Since the upgrade the Nrwl 13+, when I run the affected lint target on the CI (azure devops), I got this error on all projects:
I already put a comment on this closed issue: #8735.
@meeroslav also made a PR #8831 that should fix the issue on 13.7.3 but I am still having it.
For the moment I have to install the library each time I run a lint command on the CI:
But this is increasing a lot of the time to the CI process
Expected Behavior
To not have this error
Steps to Reproduce
yarn affected:lint
Environment
The text was updated successfully, but these errors were encountered: