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

[Azure DevOps Pipeline error || Cannot find module - share/sfdx/node_modules/eslint/conf/eslint-recommended.js ] #987

Closed
sameer544 opened this issue Feb 27, 2023 · 1 comment

Comments

@sameer544
Copy link

Describe the bug
Getting ERROR running scanner:run: Cannot find module '/home/vsts/.local/share/sfdx/node_modules/eslint/conf/eslint-recommended.js' in Azure DevOps pipeline.

To Reproduce
Step 1 - Create node.JS build YML pipeline on Azure DevOps
Step 2 - Create new job for scanning salesforce org code by running below command
sfdx scanner:run --target ./changed-sources --engine "eslint-lwc,pmd" --format table

Expected behavior
Should provide violation report like mentioned in below image.
image

Screenshots
image

Desktop (please complete the following information):

  • OS: Azure DevOps VM Image ubuntu-latest
  • Scanner Version : v3.9.0

Additional context
Issue is only on Azure DevOps Pipeline level not on local machine.

"Workaround": Have you found any ways to sidestep the problem? No

"Urgency": Not business-stopping.

@johnbelosf
Copy link
Collaborator

hi @sameer544 thanks for raising this. We are working on this issue - please follow #986 and I'll close this as a duplicate in the meantime

@johnbelosf johnbelosf closed this as not planned Won't fix, can't repro, duplicate, stale Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants