-
Notifications
You must be signed in to change notification settings - Fork 50
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 Cannot find module '/home/runner/.local/share/sfdx/node_modules/eslint/conf/eslint-recommended.js' #986
Comments
@PreziosiRaffaele - thanks for reporting. Pinning this issue for more visibility. Looks like every user who needs to install Will add more information as I find it. |
I have exactly the same error in MegaLinter (that embeds sfdx-scanner) |
Hi, please advise if we have any workaround, issue is impacting CICD? WARNING: We're continually improving Salesforce Code Analyzer. Tell us what you think! Give feedback at https://research.net/r/SalesforceCA
|
Sorry for the delay. We have more clarity on the issue, but the fix is still pending. The root cause is that eslint made a change to breakaway the eslint-recommended config into its own dependency in 8.35.0. This has caused the reference from Code Analyzer to this config to break. A workaround would be to temporarily install from CI/CD, Salesforce CLI version 7.179.0, which somehow refers to an older version of eslint.
Will update you with an ETA for the fix tomorrow morning. |
Hi @rmohan20 , Thanks for quick reply. I'll check on the workaround suggested. |
7.179.0 doesn't work for me :-(
|
correct, same error |
We are having the same issue, our CI is broken because of this.. |
Thank you all for bearing with us on this. We are working to issue a fix ASAP. |
This issue has been linked to a new work item: W-12608309 |
Update: the fix is ready. We are planning to make a release in the next few hours. |
Thanks for addressing this issue, it is important to users who rely on the scanner in their CI process, like our company. |
The fix is now available with the latest 3.10.0 version. |
The pligin now works fine, thanks! |
I can confirm that is working fine for me. Thank you for resolving this issue so quickly! |
All good in MegaLinter sfdx-scanner integration :) |
Many thanks |
Also confirmed fixed from us! Thanks for helping out... |
Issue resolved, many thanks to @rmohan20 |
Work fine in our Azure DevOps pipeline. Thank you for the quick fix :) |
Works for us, thanks! |
Describe the bug
ERROR Cannot find module '/home/runner/.local/share/sfdx/node_modules/eslint/conf/eslint-recommended.js'
To Reproduce
Run command
sfdx scanner:run --format sarif --target './**/*.cls' --engine=pmd --pmdconfig ruleset.xml --outfile 'apexScanResults.sarif'
Expected behavior
Rule violations were written to apexScanResults.sarif.
Screenshots
Desktop (please complete the following information):
Additional context
Friday 24/02/2023 same pipeline was working
"Workaround": Removing the SFDX scanner from the pipeline
"Urgency": Highly beneficial
The text was updated successfully, but these errors were encountered: