Full error:
Cannot make a cache safe URL for "sprocketcomplete/layouts/sprocketcomplete/js/sprocketcomplete.js", file not found. Please verify that the file exists under the layouts directory.
I have added a Mapped Folder for Layouts. My JS files are set to Build Action: Content and Copy to Output Directory: Copy always.
I also set Localizable on my ScriptLink tag to false
Has anyone seen this error before? Is there something I should be doing to make this work?
UPDATE:
This is a webfarm solution, not a sandbox solution.
On my file system the js files are located at:
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\SprocketComplete\js\
Here is my ScriptLink tags:
<SharePoint:ScriptLink ID="ScriptLink5" runat="server" Name="SprocketComplete/js/sprocketComplete.js" Localizable="false"/>
<SharePoint:ScriptLink ID="ScriptLink3" runat="server" Name="SprocketComplete/js/jquery.autocomplete.min.js" Defer="true" Localizable="false" />
<SharePoint:ScriptLink ID="ScriptLink4" runat="server" Name="SprocketComplete/js/lib/jquery.bgiframe.min.js" Defer="true" Localizable="false" />
<SharePoint:ScriptLink ID="ScriptLink2" runat="server" Name="SprocketComplete/js/jquery.min.js" Defer="true" Localizable="false" />
UPDATE 2:
I tried changing the path to my js as @Djeeg suggested, but now nothing happens. Below is my javascript. It seems like "test" should pop up (also, I am including a jQuery library the same way I am including sprocketComplete.js)
$(document).ready(function () {
alert("test");
});