Hi. I keep getting the following error when I use runat=“server” in my parse file.
Error occured when processing server side JS: V8Js::compileString():2: SyntaxError: Unexpected token % - ‘var assets = JSON.parse(%asset_children^as_asset:asset_name,asset_assetid,asset_type%);’ Line: 2
My Javascript looks like this:
var assets = JSON.parse(%asset_children^as_asset:asset_name,asset_assetid,asset_type%);
I’m running the virtual machine download of Squiz Matrix, version 5.5.6.0.
Does anybody have any ideas what could be causing this? It seems that removing runat=“server” from the tag fixed the problem and the script runs as expected, set runat and it fails.