function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Kt YadavKt Yadav 

Hi, Lightning Component inside Visualforce page throwing weird error.

Hi There is a Visual force page calling lightning compoent throwing error.
Uncaught SyntaxError: Invalid or unexpected token throws at

Here is a code
<apex:page standardController="Account" showHeader="false" standardStylesheets="false" sidebar="false" applyHtmlTag="false" applyBodyTag="false" docType="html-5.0">   
    <html xmlns="" xmlns:xlink="">  
    <apex:includeScript value="/lightning/lightning.out.js" />
    <apex:includeScript value="{!URLFOR($Resource.svg4everybody + '/svg4everybody-master/dist/svg4everybody.js')}" /> 
        <div id="lightning" />
         $Lightning.use("c:CS_CP_PortfolioDashboardApp", function() {
            // Write a function that creates the component on the page
                                       { SalesforceId : '{!Account.Id}', AccountName: '{!Account.Name}', JobTitle : '{!Account.Job_Title__c}'},
                                       function(cmp) {
                                                // do some stuff