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


$Lightning.use("MFPT:CMP_MFApp", function() {
    console.log('app invoked');
    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"/>    

  • 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 '17 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 '17 at 8:02
  • 2
    Can you check if there are any console errors ? And if you have defined a div tag with Id=“lightning” – StormBr34ker Dec 9 '17 at 8:46
  • 2
    @dinesh Can the user in the subscriber org access the CMP_MFApp application outside the Visualforce page? – Daniel Ballinger Dec 10 '17 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 '17 at 4:29

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

| improve this answer | |

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.