Questions tagged [lightning-out]

Lightning Out is a feature that allows Lightning Components to be used in pages that are run from non-Salesforce servers allowing components to be added to external apps. A JavaScript library is included in the page on the origin server. Markup is added to configure & activate the Lightning components app. Lightning Out pulls the components app into the page over a secure connection & inserts it into the DOM of the page.

Filter by
Sorted by
Tagged with
14
votes
1answer
429 views

Cannot read property '$$OwnerKey$$' of null

I have a Visualforce Lightning Out page that's rendering some <lightning:input type="date"> elements. Since the Winter '19 release in the dev sandbox I'm working in, whenever I select a date ...
12
votes
1answer
3k views

Is there a way to handle a Lightning Event from a Visualforce Page using Lightning Out?

It's documented that Lightning Events can be fired from Non-Lightning code. However, I'm looking for a way to do the opposite. I'd like to be able to create a lightning component that will function ...
11
votes
2answers
1k views

Managed package gives lightning out syntax error after adding the handling of an application event

I have: 2 Lightning components 1 Lightning application (with dependency out) 2 Visualforce pages that host the lightning components through the lightning out application What it does: 1 lightning ...
11
votes
1answer
438 views

Dynamic dependency issue

Ever since summer '16 patch 10 or so my Lightning Out App has not been loading. Checking the console output shows that the framework throws an exception like SyntaxError: JSON.parse: unexpected ...
10
votes
1answer
837 views

Named Credentials in Lightning Component - Streaming API

Setup: Force.com site page Guest Users VF with Lightning Out Lightning component to subscribe to Push Topic Problem Guest User does not have a session ID so no way to set it here: $.cometd.init({ ...
8
votes
1answer
937 views

Lightning Out without “My Domain”

I'm using Lightning Out in order to render my Lightning Components inside a Visualforce page. <apex:page showHeader="true" sidebar="true"> <apex:includeLightning /> <div id="...
8
votes
1answer
12k views

Add Lightning Component to VisualForce Page or Component

I'm trying to bring a Lightning component through so that it is visible in a VisualForce Component, but a VF page is ok if this isn't doable. I've checked a number of resources that say similar ...
8
votes
1answer
480 views

Navigation between component in lightning out

I'm trying to build an app with lightning out (in my case they are hosted in VF Pages) but I was wondering if there is a way to navigate from component to component like with $A.get("e.force:...
8
votes
1answer
3k views

No 'Access-Control-Allow-Origin' / Locker Service / ltng:require

Setup: Visualforce Page using lightning out <apex:page id="Js_Examples" standardStylesheets="false" showHeader="false" sideBar="false"> <apex:includeLightning/> <script> $...
7
votes
1answer
1k views

Lightning Out suddenly broken - 500 (Server Error)

We have a set of lightning components rendered in Classic on Visualforce using the Lightning Out library. This morning, it is suddenly down for us on Prod, partial and developer sandboxes. Our ...
7
votes
1answer
788 views

Do we need both an App and a Component for Lightning Out?

All of the examples for Lightning Out, such as Use Lightning Components in Visualforce Pages shows that we need an app and a component. Is there a way to use just an app or just a component? Ideally, ...
7
votes
1answer
483 views

Unstyled Flows in Lightning Out

I have a static site, hosted in a AWS S3 bucket. The static site uses Lightning Out to load a component that contains a flow. I have included the SLDS stylesheet in the static site, and have ...
6
votes
1answer
761 views

Spring'16 issues with lookup-fields on <force:recordEdit> in standalone LightningApps and LightningOut

I'm trying to use <force:recordEdit> on a Visualforce page via Lightning Out. But there seems to be some rendering issues. Using a standalone Lightning App it looks like this: Using ...
6
votes
0answers
628 views

Detect if Lightning component is used in Lightning Out

Is there a way to detect the context of where component is used? For example to find if it's LEX, community, app, Lightning Out or Lightning Out Unstyled. I was thinking something like using $A....
6
votes
2answers
608 views

Intermittent 404 errors using Lightning Out in Visualforce

I'm seeing intermittent 404 errors when attempting to use lightning components inside a Visualforce page via Lightning Out, but one org seems far more affected than others. The VF markup: <apex:...
5
votes
1answer
182 views

Auto scale lightning component in VF Page

I am trying to POC a very simple lightning component within a VF page, which is then displayed on a Force.com Sites. I am able to do this, but I need the component to "auto scale" to the correct size,...
5
votes
1answer
1k views

Unable to subscribe to Platform Event Notifications in a Lightning Component via Lightning Out

The ultimate objective is to detect if a visualforce page (or the lightning component embedded within it) is already being viewed/used by a user when someone else opens it and subsequently restrict ...
5
votes
1answer
757 views

window.opener.$A syntax gives - permission denied to access property “$A” error

Problem statement: When we try to access the 'window.opener.$A' property of lightning component present in the parent from a javascript snippet present in a child window (Visual force page) we get ...
5
votes
0answers
425 views

Issue with lightning app when using lightning out

Hi guys I have made a nodejs app and want to expose my lightning app in it. The component seems to render but some functionality does not work in the dev console I am getting these errors: Access to ...
4
votes
3answers
3k views

How to show spinner on VF page embedding a LTNG component while its still loading?

I have a VF page containing lightning component using ltng out. It is taking time to load(about 6 seconds) , and in that time I want to show spinner to user. How can this be implemented? My VF Page: ...
4
votes
3answers
804 views

Lightning Icons (SVG) not displaying in Lightning Out

For some reason lightning:icon is not displaying the svg in Lightning Out. I tried also lightning:buttonIcon and lightning:button with icon. Here is my ActivityTimeline (custom component) which uses ...
4
votes
3answers
3k views

lightning:helptext not working in Lightning Out

I'm having issues rendering the lightning:helptext component with Lightning Out. Here's the code that will reproduce the issue: TestOut.page <apex:page showHeader="false" sidebar="false"> &...
4
votes
1answer
669 views

Suppress error message $A.getCallback() when a Lightning Component is embedded in Visualforce but tries to fire a toast

I (finally) finished my lightning component to enable & disable a scheduled job for an AppExchange app I'll publish shortly. I added it to a VF page and all the functionality worked with the ...
4
votes
1answer
1k views

Lightning Out using ltng:require: How to deal with CORS when Locker Service enabled?

I have built a dependency app using extends="ltng:outApp" that is hosted on heroku. It runs on an express node.js server and I use salesforce-oauth2-flow. Lets call it myApp myApp is whitelisted in ...
4
votes
0answers
376 views

SLDS not applied to flow when used in Lightning Out

I have a Lightning Out app, hosted in a S3 bucket, that launches a flow. Everything works and is styled as it should be until the flow is launched. The input styles revert back to "normal", the date ...
3
votes
1answer
377 views

Does lightning out consumes APIs?

In the documentation there is no mention of apis consumption by lightning out. https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/lightning_out_considerations.htm Since ...
3
votes
1answer
556 views

Open New Tab in Lightning Out?

Scenario: I want to create a List Button which displays a Lightning Component. The only way to implement this step is to use a Visualforce Page which uses a Standard Set Controller, then use ...
3
votes
2answers
791 views

Add URL Parameter or another method to prevent action on browser refresh - Lightning Out / Component

Scenario: Using Lightning Out I have a VF page display a Lightning Component. The VF page passes values from URL parameters to the component attributes. If specific parameters are passed the ...
3
votes
1answer
381 views

How to expose lightning component in existing external web page without authentication

I need to use my lightning component in a web page which is not in any way related to salesforce(its not a SF community or site, its an existing web page that is live). This web page uses a form, and ...
3
votes
1answer
773 views

Lightning Out SLDS Weirdness

I am trying to load a lightning out app in a static site hosted via an S3 bucket. I started with a lightning app that extends ltng:outApp and it describes a single component as a dependency. The app ...
3
votes
1answer
750 views

Cannot Load Lightning Out in Firefox

I have run into a large blocker regarding the use of Lightning Out to inject a Lightning component into a Visualforce page. I have used the method outlined in the documentation here in order to load a ...
3
votes
1answer
1k views

forceChatter:feed & forceChatter:publisher components is not loading in VF page using lightning out

This is my feed component: <aura:component implements="flexipage:availableForAllPageTypes,force:appHostable" access="global"> <forceChatter:feed type="Record" subjectId="XYZ...."/> &...
3
votes
1answer
91 views

What is the approach for packaging ltng:out enabled component in a VF page in managed package?

There are 2 questions in this : I have deployed my code from dev Org to packaging org using workbench. For my code to work in packaging org, should my packaging org have domain name registered? I ...
3
votes
1answer
56 views

Lightning components inside Salesforce Mobile SDK

I am pretty new to mobile Development, so i have started with this Trail and created hybrid_remote app. Everything works great as i could able to access the data trough VF page. Then I wanted to ...
3
votes
1answer
1k views

How to use Lightning out to show a Lightning app in html page?

I am trying to use Lightning out to show a lightning app in a html page. Following is the code snippet in my html page - $Lightning.use([AppName], function() { $Lightning.createComponent("[...
3
votes
2answers
461 views

Unable to get ui:inputDate render well when injected from a Visualforce Page

I am using the stock <ui:inputDate displayDatePicker="true" /> element. When it's displayed from a native lightning page everything works correctly. The same component is injected in a ...
3
votes
1answer
278 views

Winter 17 SFDC Classic / Visualforce / Lightning out / Destroying objects

I'm having issues with a very simple use case. namely display a lightning component upon a button click via refreshing an output panel, then hiding the component via rendered=false on the same output ...
3
votes
0answers
32 views

Unable to get Lightning application event in scratch org of SFDX project with namespace specified

I tried to use an application event in visualforce page using lighting out on my scratch org with namespace. But I was not able to get the app event in aura component. I wrote following Aura ...
3
votes
0answers
506 views

No navigation for sforce.one.navigateToURL from vfpage lightning out in a community site

I have a lightning component developed to work both in lightning and in community pages(flexipage:availableForAllPageTypes,forceCommunity:availableForAllPageTypes) To work around LockerService ...
3
votes
2answers
102 views

VF page that includes a lightning app and an apex:tabPanel throws js error in browser console

Summary JS errors are thrown in browser console when including apex:includeLightning and apex:tabPanel in Visualforce. apex:tabPanel introduces scriptaculous which has conflicts with $A in aura. Does ...
2
votes
2answers
470 views

Reuse Classic Apex Controller for Lightning conversion

We have a very large, complex Visualforce page with a very large, complex extension. We have been asked to convert a portion of the functionality to Lightning (using Lightning Out on the VF page). Is ...
2
votes
1answer
92 views

Lightning out event override failing in Summer '18 (except in debug mode…?)

I built a lightning component to be used in a Visualforce page using Lightning Out, which works fine in my development environment, which is in Spring '18. However, when I pushed it to another ...
2
votes
1answer
2k views

lightning:inputfield - lookup fields in Lightning Experience, Salesforce Mobile App and Lightning Out

I’ve been experimenting with the new lightning:inputfield and it seems that the lookup fields don’t work in the mobile app or in Lightning Components which have been embedded in VF pages. Can people ...
2
votes
1answer
512 views

Lightning URL button - detect reload and prevent action on reload

As a follow up to this question: Add URL Parameter or another method to prevent action on browser refresh - Lightning Out / Component The solution does not work in lightning. The basics of what I am ...
2
votes
1answer
863 views

modifying napili community template lightning components

Is there a way to view & modify the code of standard lightning components that are visible when editing the Napili template in the community builder. I was wondering if I could modify some of the ...
2
votes
1answer
1k views

Does <aura:application … extends=“ltng:outApp” /> stop the usability via /c/appName.app?

Following the description here to make an Lightning Component available in Visualforce, I found, that the Lightning App does no longer work as expected as a Standalone App via /c/appName.app The js ...
2
votes
1answer
1k views

Lightning Out: CORS error even after whitelisting force.com site

I have a force.com site. I access one visualforce page from this site. On this vf page is a lightning-out application. All of the lightning-out requirements to run on a vf page has been set: ...
2
votes
1answer
2k views

{!$User.UIThemeDisplayed} not getting correct Theme in Lightning out

I am new to Lightning so it might be very foolish question. I have a Visualforce page with 2 buttons "Save" and "Cancel" and both has custom code which uses "PageReference" to navigate to other page. ...
2
votes
1answer
123 views

Lightning Out : Error 404, Blocked by CORS

To test Lightning Out on an external site, I use the application created in the "Aura Components Basics" module: expensesApp This one works very well the proof in image: Pour To make my application ...
2
votes
0answers
38 views

Dependent pick list error in visualforce

I need to display more than 10 dependent Picklists on a Visualforce page, but when I add more than 10 I get the below error: Visualforce pages may not display more than 10 dependent picklists ...