Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Usage in Lightning #93

Open
JakubMo opened this issue Jul 31, 2017 · 1 comment
Open

Usage in Lightning #93

JakubMo opened this issue Jul 31, 2017 · 1 comment

Comments

@JakubMo
Copy link

JakubMo commented Jul 31, 2017

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?

@prashant-raiyani
Copy link

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();

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants