SwitchScriptTool is missing

Post Reply
crestbrr
Newbie
Posts: 4
Joined: Wed Mar 27, 2024 4:17 pm

SwitchScriptTool is missing

Post by crestbrr »

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?
Attachments
Screenshot 2025-03-27 163221.png
Screenshot 2025-03-27 163221.png (5.66 KiB) Viewed 10612 times
Alastair Scheuermann, Software Engineer @ Sun Print Solutions
Connect with me on LinkedIn
Post Reply