1

I have installed a managed package in an org and assigned the user an appropriate permission set and when clicking the lightning component it returns a blank page

enter image description here

here MFSettings is a lightning component it is not working but it works fine in the org in which it was namespaced and packaged. What am I missing here can anyone point out

<script>        

$Lightning.use("MFPT:CMP_MFApp", function() {
    console.log('app invoked');
    $Lightning.createComponent("MFPT:CMP_MFObjects",{},"lightning",
    function(component) {       
        console.log('component invoked');
    });
});

this is what i gave in vf page and then in CMP_MFApp app am calling the two components

<aura:application extends="ltng:outApp">

   <aura:dependency resource="MFPT:CMP_MFSettings"/> 

   <aura:dependency resource="MFPT:CMP_MFObjects"/>    

</aura:application>
8
  • 2
    Ensure your org is lightning enabled and ensure your references in lightning out have appropriate namespaces and are not using c:
    – Eric
    Dec 5, 2017 at 6:42
  • 1
    yeah I checked that too everything is fine but couldn't find out what's the issue is
    – SFDC
    Dec 9, 2017 at 8:02
  • 2
    Can you check if there are any console errors ? And if you have defined a div tag with Id=“lightning”
    – Sumuga
    Dec 9, 2017 at 8:46
  • 2
    @dinesh Can the user in the subscriber org access the CMP_MFApp application outside the Visualforce page? Dec 10, 2017 at 23:34
  • 2
    @Sumuga another one Uncaught SyntaxError: Unexpected token w in JSON at position 0 at JSON.parse (<anonymous>) at XMLHttpRequest.xhr.onreadystatechange (lightning.out.delegate.js?v=1512966213440:177)
    – SFDC
    Dec 11, 2017 at 4:29

1 Answer 1

5
+50

From the above details looks like CMP_MFApp is the component application, just try to include Acess="global" in your application

<aura:application access='global' extends="ltng:outApp">

Faced the same issue long back

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .