Visual Force page does not invoking lightning component
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
0
down vote
favorite
I have created a managed beta package for testing purpose and I have installed it on a newly created fresh org and while I am trying to preview a visualforce page which is invoking a lightning component the lightning component is not loading and showing an error in console "Failed to load resource: the server responded with a status of 404 (Not Found)".
And while I am installing the same package on old org which was created approx 1 month before the visualforce page is working fine.
---------------Visualforce page ---------
<apex:page controller="abc" showHeader="false" standardStylesheets="false" sidebar="false" applyHtmlTag="false" applyBodyTag="false" docType="html-5.0">
<apex:includeLightning />
<html xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" lang="en" style="height:90%">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<title>Display Data</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<apex:slds />
</head>
<body style="height:100%">
<!-- REQUIRED SLDS WRAPPER -->
<div class="slds-scope" style="height:100%" id="data">
</div>
</body>
<script>
$Lightning.use("!namespace:lightningApp", function()
$Lightning.createComponent("!namespace:lightningComponent",
"data",
function(cmp)
// do some stuff
);
);
</script>
</html>
software-development developer
New contributor
add a comment |Â
up vote
0
down vote
favorite
I have created a managed beta package for testing purpose and I have installed it on a newly created fresh org and while I am trying to preview a visualforce page which is invoking a lightning component the lightning component is not loading and showing an error in console "Failed to load resource: the server responded with a status of 404 (Not Found)".
And while I am installing the same package on old org which was created approx 1 month before the visualforce page is working fine.
---------------Visualforce page ---------
<apex:page controller="abc" showHeader="false" standardStylesheets="false" sidebar="false" applyHtmlTag="false" applyBodyTag="false" docType="html-5.0">
<apex:includeLightning />
<html xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" lang="en" style="height:90%">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<title>Display Data</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<apex:slds />
</head>
<body style="height:100%">
<!-- REQUIRED SLDS WRAPPER -->
<div class="slds-scope" style="height:100%" id="data">
</div>
</body>
<script>
$Lightning.use("!namespace:lightningApp", function()
$Lightning.createComponent("!namespace:lightningComponent",
"data",
function(cmp)
// do some stuff
);
);
</script>
</html>
software-development developer
New contributor
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have created a managed beta package for testing purpose and I have installed it on a newly created fresh org and while I am trying to preview a visualforce page which is invoking a lightning component the lightning component is not loading and showing an error in console "Failed to load resource: the server responded with a status of 404 (Not Found)".
And while I am installing the same package on old org which was created approx 1 month before the visualforce page is working fine.
---------------Visualforce page ---------
<apex:page controller="abc" showHeader="false" standardStylesheets="false" sidebar="false" applyHtmlTag="false" applyBodyTag="false" docType="html-5.0">
<apex:includeLightning />
<html xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" lang="en" style="height:90%">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<title>Display Data</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<apex:slds />
</head>
<body style="height:100%">
<!-- REQUIRED SLDS WRAPPER -->
<div class="slds-scope" style="height:100%" id="data">
</div>
</body>
<script>
$Lightning.use("!namespace:lightningApp", function()
$Lightning.createComponent("!namespace:lightningComponent",
"data",
function(cmp)
// do some stuff
);
);
</script>
</html>
software-development developer
New contributor
I have created a managed beta package for testing purpose and I have installed it on a newly created fresh org and while I am trying to preview a visualforce page which is invoking a lightning component the lightning component is not loading and showing an error in console "Failed to load resource: the server responded with a status of 404 (Not Found)".
And while I am installing the same package on old org which was created approx 1 month before the visualforce page is working fine.
---------------Visualforce page ---------
<apex:page controller="abc" showHeader="false" standardStylesheets="false" sidebar="false" applyHtmlTag="false" applyBodyTag="false" docType="html-5.0">
<apex:includeLightning />
<html xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" lang="en" style="height:90%">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<title>Display Data</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<apex:slds />
</head>
<body style="height:100%">
<!-- REQUIRED SLDS WRAPPER -->
<div class="slds-scope" style="height:100%" id="data">
</div>
</body>
<script>
$Lightning.use("!namespace:lightningApp", function()
$Lightning.createComponent("!namespace:lightningComponent",
"data",
function(cmp)
// do some stuff
);
);
</script>
</html>
software-development developer
software-development developer
New contributor
New contributor
New contributor
asked 5 mins ago
Rameshvar Dayal
1
1
New contributor
New contributor
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Rameshvar Dayal is a new contributor. Be nice, and check out our Code of Conduct.
Rameshvar Dayal is a new contributor. Be nice, and check out our Code of Conduct.
Rameshvar Dayal is a new contributor. Be nice, and check out our Code of Conduct.
Rameshvar Dayal is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fworkplace.stackexchange.com%2fquestions%2f121985%2fvisual-force-page-does-not-invoking-lightning-component%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password