function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Tarun Kumar MohantyTarun Kumar Mohanty 

Page CommunitiesSelfRegConfirm does not exist

Hi i m trying to deploy on production but got thiis error 
Error: Page CommunitiesSelfRegConfirm does not exist

please help to figureout this error
Thanks
SwethaSwetha (Salesforce Developers) 
HI Tarun,
Are you deploying from a scratch org?
Tarun Kumar MohantyTarun Kumar Mohanty
Yes
SwethaSwetha (Salesforce Developers) 
The issue appears to be because of a change in the Visualforce names causing these dependency errors.

You can 
1. Take backup of the existing classes and pages(CommunitiesSelfRegConfirm in this case)
2. Deploy the Orginal set of classes and pages that get created when creating a community to the affected org
3. Make necessary changes to the newly deployed classes and delete the renamed ones.

Related: https://salesforce.stackexchange.com/questions/254222/apex-class-sitelogincontroller-does-not-exist-scratch-org