Page include is not working when we use a skuid page in LEX.
We are getting that error in console :
**Uncaught TypeError: Cannot redefine property: put **
Same page is working fine in Salesforce classic.
To replicate the same issue please follow these steps:
1.) Create a skuid Page : PageIncludePage
<models></models>
<model id="User" limit="1" query="true" createrowifnonefound="false" adapter="salesforce" type="" sobject="User"></model>
<fields></fields>
<field id="FirstName"></field>
<field id="LastName"></field>
<conditions></conditions>
<condition type="userinfo" value="" field="Id" operator="=" enclosevalueinquotes="true" userinfotype="userid"></condition>
<actions></actions>
<components></components>
<skootable showconditions="true" showsavecancel="true" showerrorsinline="true" searchmethod="server" searchbox="true" showexportbuttons="false" pagesize="10" createrecords="true" buttonposition="" mode="read" uniqueid="sk-rAxLE-89" model="User"></skootable>
<fields></fields>
<field id="FirstName"></field>
<field id="LastName"></field>
<rowactions></rowactions>
<action type="edit"></action>
<action type="delete"></action>
<massactions usefirstitemasdefault="true"></massactions>
<action type="massupdate"></action>
<action type="massdelete"></action>
<views></views>
<view type="standard"></view>
<resources></resources>
<labels></labels>
<javascript></javascript>
<css></css>
<styles></styles>
<styleitem type="background" bgtype="none"></styleitem>
2.) Create a new page: “Test_Page” with below xml:
<models></models>
<model id="User" limit="1" query="true" createrowifnonefound="false" adapter="salesforce" type="" sobject="User"></model>
<fields></fields>
<field id="FirstName"></field>
<field id="LastName"></field>
<conditions></conditions>
<condition type="userinfo" value="" field="Id" operator="=" enclosevalueinquotes="true" userinfotype="userid"></condition>
<actions></actions>
<components></components>
<includepanel type="skuid" uniqueid="sk-rBW2A-108" pagename="PageIncludePage" module=""></includepanel>
<resources></resources>
<labels></labels>
<javascript></javascript>
<css></css>
<styles></styles>
<styleitem type="background" bgtype="none"></styleitem>
Now if you open " Test_Page" in Salesforce classic then it will work in classic and will show you current logged in user.
If you switch from Salesforce Classic To LEX and try to open that same page then you will see that issue that page include is not working.
Thanks,
Raj