1

I am getting these errors below when i run my SharePoint Add-In (app-part):

enter image description here

And i define my scripts like this in my index.html:

    <script type="text/ecmascript" src="/_layouts/15/sp.core.js"></script>
<script type="text/ecmascript" src="/_layouts/15/sp.runtime.js"></script>
<script type="text/ecmascript" src="/_layouts/15/SP.UI.Controls.js"></script>
<script type="text/ecmascript" src="/_layouts/15/clienttemplates.js"></script>
<script type="text/ecmascript" src="/_layouts/15/clientforms.js"></script>
<script type="text/ecmascript" src="/_layouts/15/clientpeoplepicker.js"></script>
<script type="text/ecmascript" src="/_layouts/15/autofill.js"></script>
<script type="text/ecmascript" src="/_layouts/15/sp.RequestExecutor.js"></script>
<script type="text/ecmascript" src="/_layouts/15/sp.js"></script>

How can i fix this issue??

2
  • Check the answer here, You might get it...sharepoint.stackexchange.com/questions/21756/… Commented Jun 29, 2016 at 12:11
  • I had to put all my scripts this way, and it stop bugging me with the error. Commented Jun 29, 2016 at 14:16

1 Answer 1

1

I had to put all my scripts this way, and it stop bugging me with the error.

   <SharePoint:ScriptLink name="sp.js" runat="server" OnDemand="true" LoadAfterUI="true" Localizable="false" />
<SharePoint:ScriptLink name="sp.core.js" runat="server" OnDemand="true" LoadAfterUI="true" Localizable="false" />
<SharePoint:ScriptLink name="sp.runtime.j" runat="server" OnDemand="true" LoadAfterUI="true" Localizable="false" />
<SharePoint:ScriptLink name="SP.UI.Controls.js" runat="server" OnDemand="true" LoadAfterUI="true" Localizable="false" />
<SharePoint:ScriptLink name="clienttemplates.js" runat="server" OnDemand="true" LoadAfterUI="true" Localizable="false" />
<SharePoint:ScriptLink name="clientforms.js" runat="server" OnDemand="true" LoadAfterUI="true" Localizable="false" />
<SharePoint:ScriptLink name="autofill.js" runat="server" OnDemand="true" LoadAfterUI="true" Localizable="false" />
<SharePoint:ScriptLink name="sp.RequestExecutor.js" runat="server" OnDemand="true" LoadAfterUI="true" Localizable="false" />

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.