trailheadapps / az-insurance

Sample app that demonstrates how to build customer/partner/marketing experiences for Salesforce Experience Cloud and Lightning Web Runtime.
Creative Commons Zero v1.0 Universal
113 stars 100 forks source link

Facing Error 'SiteDotCom source file expected' while deploying #53

Closed pradeepchary closed 2 years ago

pradeepchary commented 2 years ago

Summary

Hi, I am facing the below error while deploying. I see there are no have SiteDotCom metadata files in the repository.

ERROR running force:source:deploy: ../az-insurance/force-app/main/default/sites/LWR_Demo_Agent.site-meta.xml: Expected source files for type 'SiteDotCom'

Salesforce Org Type

Scratch Org

Steps To Reproduce

While running the cmd sfdx force:source:deploy -m ApexPage,CustomSite,ExperienceBundle,NavigationMenu,Network,Profile

Current Behavior

No response

Expected Behavior

No response

Relevant Log Output

No response

Code of Conduct

github-actions[bot] commented 2 years ago

Welcome! 👋

Thank you for posting this issue. 🙇🏼‍♂️ We will come back to you latest within the next 48h (working days). Stay tuned!

muenzpraeger commented 2 years ago

@mshanemc I feel that this falls into the realm of the Salesforce CLI, as the error happens immediately after running the deploy command. And Experience Cloud LWR sites don't have SiteDotCom metadata. Thank for looking into it!

FYI @zhawtof @gtabboud

pradeepchary commented 2 years ago

Any updates on this issue? Or any workaround for the time being, please suggest. Thank you.

muenzpraeger commented 2 years ago

@pradeepchary Can you please update the Salesforce CLI (using sfdx update), and then try again? The most recent version should have fixed that. Thanks!

pradeepchary commented 2 years ago

@muenzpraeger the issue is fixed, was able to deploy, thank you