deploy-to-sfdx icon indicating copy to clipboard operation
deploy-to-sfdx copied to clipboard

GUID: 0bdeb43e-9115-4b00-4fb3-89e5bb55cb47 ERROR: ENOENT: no such file or directory, open 'config/project-scratch-def.json'.

Open vektor-knight opened this issue 6 years ago • 3 comments

When deploying directly to SF

GUID: 0bdeb43e-9115-4b00-4fb3-89e5bb55cb47 ERROR: ENOENT: no such file or directory, open 'config/project-scratch-def.json'.

  1. GUID: 0bdeb43e-9115-4b00-4fb3-89e5bb55cb47 ERROR: ENOENT: no such file or directory, open 'config/project-scratch-def.json'.
  2. Set instance url to https://uss-serenity-123815.my.salesforce.com.
  3. Successfully cloned https://github.com/kevinohara80/sfdc-trigger-framework.
  4. No .salesforcedx.yaml found in repository. Using defaults.

vektor-knight avatar Aug 28 '18 23:08 vektor-knight

To use deploy to sfdx, you need to have a .salesforcedx.yaml file in your repo as explained here. There is no such file in the repo you're trying to deploy even though the button has been added.

You should create an issue on the repor to ask him to add the file or add it yourself via a pull request.

FabienTaillon avatar Aug 29 '18 08:08 FabienTaillon

Thanks, figured it was that simple. It was my understanding that his framework may have had a contrived example builtin, which would have triggered on deployment.

vektor-knight avatar Aug 29 '18 17:08 vektor-knight

Yes, it does have some built-in capabilities and it will make assumptions. The one missing here is that if it can't find the yml file it will look for a default config/project-scratch-def.json in the source. In this case, the repo doesn't appear to have one, so it fails.

This isn't a bad thing to enhance. -- i.e. if it doesn't find one, use a default.

wadewegner avatar Aug 29 '18 18:08 wadewegner