Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lightningout not working after successful authentication #1

Open
devashishkhandelwal opened this issue Jul 10, 2023 · 0 comments
Open

Comments

@devashishkhandelwal
Copy link

devashishkhandelwal commented Jul 10, 2023

Lightning out component not getting loaded after authentication, Authentication is working fine. After calling

$Lightning.use(
         appName,
         function () {
           alert("ready done ");
           _lightningReady = true;
           document.getElementById("lexcontainer").style.display = "";
           if (typeof callback === "function") {
             callback();
           }
         },
         url
       );

We are getting this error

Uncaught SyntaxError: Unexpected token '<', "


<!DOCTYPE "... is not valid JSON
    at JSON.parse (<anonymous>)
    at lightning.out.delegate.js?v=1688973633677:168:43
    at xhr.onreadystatechange (lightning.out.delegate.js?v=1688973633677:137:17)
(anonymous) @ lightning.out.delegate.js?v=1688973633677:168
xhr.onreadystatechange @ lightning.out.delegate.js?v=1688973633677:137
XMLHttpRequest.send (async)
requestApp @ lightning.out.delegate.js?v=1688973633677:151
use @ lightning.out.delegate.js?v=1688973633677:165
script.onload @ lightning.out.js:46
load (async)
loadDelegateScript @ lightning.out.js:43
(anonymous) @ lightning.out.js:53
(anonymous) @ lightning.out.js:78

Pleaes help on this issue. Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant