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
DML2020DML2020 

Validation failed on LWC

In the process of validating a LWC and I receive the error, "Unable to find Apex action class referenced as 'CustomNotificationController'. What doesn't make sense is that I see that file exists in my IDE and hence in my sandbox I've uploaded the change set from (verified it exists using the dev console).

Any idea why this is showing up when I can clearly see it exists?

mukesh guptamukesh gupta
Hi DML,

I hope you have already created the apex class in your org... If not please deploy or create the Apex class first then deploy LWC Compnent...

If the Apex class is not found in the source then only you will recieve this error...

if you need any assistanse, Please let me know!!

Kindly mark my solution as the best answer if it helps you.

Thanks
Mukesh