I have created a custom list definition and detailed in many articles across the net I have specified my file in the JSLink property of the view. For some reason it is no longer working.
<JSLink Default="TRUE">/_layouts/15/myfile.js</JSLink>
Note: I have also tried ~layouts. But for some reason when I create the list it is no longer working. I have tried creating the list in both Powershell and the UI.
When I set the JSLink property on the web part on the view, it works as expected, but no through the schema.xml any more.
The javascript is trivial, basically just formatting a date not to show the time. Which is irrespective because the file isn't loaded. I've put a console.log("")
message inside the file, which is only called when I set the JSLink property on the web part itself.
I can also see from View Source that the file is not being added.
I have checked the JSLink property on the View in Powershell and it is set to the one I define in the schema.xml
Is there something I am missing?