+ Start a Discussion
Ashish_Sharma_DEVSFDCAshish_Sharma_DEVSFDC 

Something has gone wrong. info.$component$.$isValid$ is not a function. Please try again.

I am previewing my lighting component ov vf page ,below is the code for same.
 
<apex:page standardController="Opportunity" standardStylesheets="false" 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
        var opportunityId = "{!$CurrentPage.parameters.id}";
        $Lightning.use("c:HelloComponentApp", function() {
            // Write a function that creates the component on the page
          $Lightning.createComponent("c:HelloComponent",
          {"opportunityId" : opportunityId},
          "lightning",
          function(cmp) {
            // do some stuff
            
          });
        });
    </script>

</apex:page>

I am recieving below error.
Something has gone wrong. info.$component$.$isValid$ is not a function. Please try again.

Any help would be appreciated .
Best Answer chosen by Ashish_Sharma_DEVSFDC
Ashish_Sharma_DEVSFDCAshish_Sharma_DEVSFDC
For the sake of testing in component  ,i was trying to print collection type attribute without using aura:iteration tag.
As soon as i used <aura:iteration > for same collection tag ,it worked.

All Answers

Mohith Kumar ShrivastavaMohith Kumar Shrivastava
Couple of things to check for

1.Enable my domain and set a domain for your org

2.The way we include lightning out is changed now and there is a specific tag 
 
<apex:includeLightning />

 
Ashish_Sharma_DEVSFDCAshish_Sharma_DEVSFDC
For the sake of testing in component  ,i was trying to print collection type attribute without using aura:iteration tag.
As soon as i used <aura:iteration > for same collection tag ,it worked.
This was selected as the best answer
Douglas C. AyersDouglas C. Ayers
Thanks Ashish for posting your solution!! Lightning has the worst error messages and debugging experience.