You need to sign in to do that
Don't have an account?
Sreekumar_Menon
Something has gone wrong. $Lightning is not defined. Please try again.
getting this error when trying to run a lighning app . If I remove the extends="ltng:outApp" , the error goes away. Any suggestions ?
-lightning is enabled in the org.
-extends ltng:outApp is required to include this in a VF page.
<aura:application access="GLOBAL" extends="ltng:outApp">
<!-- Define the Design System static resource (version 0.9.0) -->
<c:scoryAppCard />
</aura:application>
any suggestions?
-lightning is enabled in the org.
-extends ltng:outApp is required to include this in a VF page.
<aura:application access="GLOBAL" extends="ltng:outApp">
<!-- Define the Design System static resource (version 0.9.0) -->
<c:scoryAppCard />
</aura:application>
any suggestions?
VF page code that embed the above lightning component -
<apex:page standardStylesheets="false" standardController="Account" showHeader="false" sidebar="false">
<!-- Include a JavaScript file in your Visualforce page -->
<apex:includeScript value="/lightning/lightning.out.js" />
<div id="lightning" />
<script>
//Tell your Visualforce page to use ExposeVF Lightning app
$Lightning.use("c:scoryApp", function() {
// Write a function that creates the component on the page
$Lightning.createComponent("c:scoryAppCard",
{},
"lightning",
function(cmp) {
// do some stuff
});
});
</script>
</apex:page>
Can you post your c:AccountInfoApp app code?
Here is my app code :
<aura:application access="GLOBAL" extends="ltng:outApp" >
<c:AccountInfoComponent />
</aura:application>
Did you try running the lightning app outside VFP , to see if it is giving an output?
remove access="GLOBAL" extends="ltng:outApp" from your app and click update preview from app code-
<aura:application > <c:AccountInfoComponent /> </aura:application>
if it is still empty, check the browser's developer console for any JS errrors