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
Dutta SouravDutta Sourav 

Trailhead Error: Lightning component is not using the Apex controller, though it exists

Regarding the Challenge "Create a Lightning Component to display Case information", under module "Using Apex in Components ",
'DisplayCaseController' Apex Class is written:
User-added image
But, the DisplayCase Component is not being saved, showing error that no such controller is found.
User-added image
So, can't complete the Challenge.
Can anyone help? Thanks in advance

Warm Regards,
Sourav
Best Answer chosen by Dutta Sourav
BalkishanBalkishan

All Answers

BalkishanBalkishan
You can change the name of Apex Controller there may be a name conflict.
Dutta SouravDutta Sourav
Hi Balkishan,
Thanks a lot for your response.
To pass the challenge, I can't change the Apex Controller Name.
Here is the question:
User-added image
Any other solution?
Warm Regards,
Sourav
Himanshu ParasharHimanshu Parashar
Sourav,

Verify the class exist in Setup -> Apex Classes-> DIsplayCaseController
BalkishanBalkishan
Are you able to change the name of Lightning Component. If you are creating "DisplayCase.cmp", it will create "DisplayCaseController.js" as javascript controller for this component. It may create a name conflict.
Dutta SouravDutta Sourav
Hi Himanshu,

Thanks for your response.
Yes, The class exists.
User-added image

Hi Balkishan,
Got your point! But even before creating the javascript controller, it is showing the same error.

Warm Regards,
Sourav

 
BalkishanBalkishan
This was selected as the best answer
Dutta SouravDutta Sourav
Yes! This Link was Helpful.  
Thank you Balkishan

Cheers,
Sourav.