Questions tagged [sfdx]
41 questions
0
votes
1 answer
LWC Jest Test showing show error in Azure Devops Pipelines
When i running Jest test for LWC in azure pipelines i got strange error
Cannot find module 'c/myComponent' from 'force-app/main/default/lwc/myComponent/__tests__/myComponent.test.js'
1 | import { createElement } from 'lwc';
> 2 | import…

Cezu
- 82
- 10
0
votes
0 answers
How to make a CumulusCI scratch org available for other projects in a GitHub Action workflow?
"I've created a scratch org via CumulusCI within a GitHub Action workflow using a cci flow, and I need to make it available for other projects in the same workflow (robot framework tests project for example). What steps do I need to take to achieve…

Vanessa Pinheiro
- 1
- 1
0
votes
0 answers
Azure Devops Pipelines - pipeline not see cached NPM - SFDX command
Hello i tried to use SFDX in azure devops pipeline and use a cached npm (sfdx + plugins) from this solution https://learn.microsoft.com/en-us/azure/devops/pipelines/release/caching?view=azure-devops
But after cache reuse and try to install there is…

Cezu
- 82
- 10
0
votes
0 answers
UNABLE_TO_GET_ISSUER_CERT_LOCALLY Node.js NPM SFDX update command
Please help I am not able to do the sfdx update or login to the org using VS Code, Node.Js and NPM?
Note: I am behind a corporate firewall/proxy.
Error I am getting:
C:\vijay\D Drive\Vijay\Learning\SFDC\Projects\VSCodeQuickstart> sfdx update…

Arjun
- 1
- 2
0
votes
0 answers
Bitbucket Pipelines export into variable using jq and xq causes error
When i running a pipeline in bitbucket i want to export into variable using
export APEX_CLASSES=$(xq . < package/package.xml | jq '.Package.types | [.] | flatten | map(select(.name=="ApexClass")) | .[] | .members | [.] | flatten | map(select(. |…

Cezu
- 82
- 10
0
votes
2 answers
Running PMD in GitLab CI Script doesn't work unless echo command is added after the script runs
This is an interesting issue. I have a GitLab project, and I've created a .gitlab-ci.yml to run a PMD that will scan my code after every commit. The ci.yml file looks like this:
image: "node:latest"
stages:
- preliminary-testing
apex-code-scan:
…

Tyler Edwards
- 184
- 2
- 9
0
votes
1 answer
Is there a way to generate sfdx auth url for scratch org if devhub is authorized using the jwt bearer flow?
In our CICD pipelines, we used to authorize devhub first using sfdx auth url and then create scratch orgs using same devhub. We use the command "sfdx force:org:display --verbose" to get the sfdx auth urls of the scratch orgs which we subsequently…

bikash_sb
- 11
- 2
0
votes
1 answer
how to get reference to the element hidden in lwc?
I am learning lwc and I came across this problem. I have the following code.
html:
'Left icon code' …

LoneWolf
- 119
- 1
- 11
0
votes
0 answers
Unable to retrieve and deploy package salesforce visual code studio
I am facing this issue: "Error deploying or retrieving source: The file or directory that you tried to deploy or retrieve isn't in a package directory that's specified in your sfdx-project.json file"
There is another post with this similar error but…

GraNeMM
- 83
- 1
- 5
0
votes
0 answers
Jenkins pipeline log displays different printenv than from container commandline
1.Created image from bitnami/jenkins as base and installed following binaries as part of image creation: - PMD,NVM,SFDX,sfdx-git-delta,sfci
2.Jenkins plugin to run dynamic agents in a Kubernetes cluster.Agents are launched as inbound agents, so it…

Venkat R
- 1
0
votes
0 answers
Failed to retrieve Second Generation Package Version info of ancestor
I created 3 package versions - 0.1.0.1, 0.1.0.2, 0.1.0.3 of 2nd generation managed package.
I promoted 0.1.0.3 to release
I created versions 0.1.0.4 - 0.1.0.6 with --skipancestorcheck
I made following update in sfdx-project file:
I specified…

rstrader
- 1
- 2
0
votes
1 answer
How to work with version control on Salesforce & Github?
Scenario:
Want to add 2 new features in org.
The process: (?)
Open a 'Developer org' for each feature.
In Github, create 2 new branches (each will connect to relevant Devorg).
Then, when were done. Merge branches in Github & merge new files from…

Nadav Spier
- 35
- 5
0
votes
0 answers
SFDX ERROR running auth:web:login: EACCES: permission denied, open '/Users/username/.sf/config.json'
Im not able to run any sfdx command I got error ERROR running auth:web:login: EACCES: permission denied, open '/Users/UserName/.sf/config.json' im using MacBook with BigSur 11.7.1
I check that folder and I dont have access to that folder due…

Cezu
- 82
- 10
0
votes
5 answers
Error Deploying or Retrieving source: The file or directory isn't in sfdx-project.json
All of a sudden I started getting this error everytime I'm trying to deploy or retrieve a file directly (right click on apex file and retrieve). This always worked and now it doesn't for all of my projects. I tried opening new ones, etc.
Error…

Walker
- 11
- 1
- 3
0
votes
0 answers
Assign role to user in Scratch Org through sfdx command and send email notification to reset the password
I have to create users in scratch org through sfdx cli command and assign profile, role to the user.
The command used is
sfdx force:user:create -u -v Username=testuser1@my.org LastName=testuser1…

Apurva
- 63
- 1
- 6