I am new to lightning out. I created a Lightning Web Component and tried to display it on a Visualforce page. My Visualforce page displays LWC even though I did not declare it in Aura app. According to my study, I should get a 404 error. How is the component displaying?

Aura Application

<aura:application  access="GLOBAL" extends="ltng:outApp" >
<!--  <aura:dependency resource="accountSearch"/> //dependency is not declared-->

Visualforce Page

<apex:page >
    <apex:includeLightning />
    <div id="lwcDemo" />
    $Lightning.use("c:lwcInVisualforceapp", function() {
        $Lightning.createComponent("c:accountSearch", { // included component here 
            function(component) {
  • Check the render time... there's a good chance that it's heading to the server to get that reference, so while it works, it's slower to render. Also, it could be cached. – Caspar Harmer Oct 24 '19 at 20:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.