Client controller must contain a JavaScript function, see default value error

--oooo--
Tera Contributor

Hello All,

I am trying to make a clone of my custom widget but when clicking on the clone widget button I am getting an error.

I have attached the error screenshot below of why I am getting the error .can anyone please guide me on this?

Thank You.

13 REPLIES 13

Basheer
Mega Sage

Hi @--oooo-- ,

Can you paste screen shot of your client controller in line no 1. It seems the fucntion is not defined properly. 

Do not remove c from clientControllerAs.

 

Please hit like button if my suggestion has helped you in any way.
Please mark correct if my response has solved your query.

Cheers,
Mohammed Basheer Ahmed.

--oooo--
Tera Contributor

Screenshot 2023-02-04 212109.png

@--oooo-- ,  I am facing the exact issue. do you find the solution to this? Thanks.

client controller must starts with api.controller at line no1 only. here in the screenshot we have space at line no1. remove the first line space and try it will work.

--oooo--
Tera Contributor

@Basheer any solution?