I am building SharePoint hosted add-in. I am trying to reference the sp.js and sp.runtime.js
but I am getting error
File '_/layouts/15/sp.runtime.js' was not found. SharePointHostedAddin
Screenshot below:
Please help.
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityI am building SharePoint hosted add-in. I am trying to reference the sp.js and sp.runtime.js
but I am getting error
File '_/layouts/15/sp.runtime.js' was not found. SharePointHostedAddin
Screenshot below:
Please help.
"_" wrong location.It should be:
<script type="text/javascript" src="/_layouts/15/sp.runtime.js"></script>
<script type="text/javascript" src="/_layouts/15/sp.js"></script>
Document reference: