Force.com-JavaScript-REST-Toolkit icon indicating copy to clipboard operation
Force.com-JavaScript-REST-Toolkit copied to clipboard

Usage in Lightning

Open JakubMo opened this issue 8 years ago • 1 comments

Hi, I was wondering how to use forcetk in Lightning.

I have a lightning component, where I've added forcetk and jQuery: <ltng:require scripts="{!join(',',$Resource.forcetk,$Resource.jQueryMin_2_2_4)}" />

However, when I want to create the client in component's controller/helper, the following is not working: var client = new forcetk.Client();

Do you have any ideas, what I might be doing wrong?

JakubMo avatar Jul 31 '17 10:07 JakubMo

Hello,

I'm also facing the same issue on my Lightning Component. Is there any solution to resolve this issue?

Error: Uncaught TypeError: Cannot read property 'Client' of undefined throws at

On helper, the following is not working var client = new forcetk.Client();

prashant-raiyani avatar Aug 06 '20 12:08 prashant-raiyani