Ran into an issue after installing nvm on my Windows machine. Manually moved SwitchScriptTool back into ~/AppData/Local/nvm/16.17.0 to fix an issue where I couldn't invoke "SwitchScriptTool --transpile ." from the command line. Transpiling works, setting column values with script expressions works, but including jobs via "Define script expression" is now broken. It gives the following error:
"Failed to transpile the script expression in property "IncludeMask": SwitchScriptTool is missing"
The script expression is as follows:
Code: Select all
async function calculateScriptExpression(s: Switch, flowElement: FlowElement, job: Job): Promise<boolean> {
return await job.getPrivateData('Debug')
}
Is anybody aware of a fix for this issue? Seems like only one part of Switch is affected. Even then, old scripts with `Define script expression` connections work fine, I assume because they've already been transpiled? Again, other parts of Switch are working fine, and I can create new scripts via CLI still, but creating branching logic (determined by private data calculations) won't work anymore. It's gotta be a broken symlink somewhere, right?