skvoch
skvoch2mo ago

Crash in wmill sync push – TypeError in sync.js due to undefined value.type

I'm running into an issue with the Windmill CLI when trying to push a sync with triggers included. After running: wmill sync push --yes --include-triggers I've got following output: file:///opt/homebrew/lib/node_modules/windmill-cli/esm/sync.js:156 if (m.value.type == "rawscript") { ^ TypeError: Cannot read properties of undefined (reading 'type') at file:///opt/homebrew/lib/node_modules/windmill-cli/esm/sync.js:156:21 at Array.flatMap (<anonymous>) at extractInlineScriptsForFlows (file:///opt/homebrew/lib/node_modules/windmill-cli/esm/sync.js:152:20) at Object.getChildren [as c] (file:///opt/homebrew/lib/node_modules/windmill-cli/esm/sync.js:328:47) at async readDirRecursiveWithIgnore (file:///opt/homebrew/lib/node_modules/windmill-cli/esm/sync.js:511:26) at async elementsToMap (file:///opt/homebrew/lib/node_modules/windmill-cli/esm/sync.js:532:22) at async Promise.all (index 1) at async compareDynFSElement (file:///opt/homebrew/lib/node_modules/windmill-cli/esm/sync.js:615:11) at async Command.push [as actionHandler] (file:///opt/homebrew/lib/node_modules/windmill-cli/esm/sync.js:1137:21) at async Command.execute (file:///opt/homebrew/lib/node_modules/windmill-cli/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/command.js:970:13) I've done some debugging locally and have more details (including the full object that caused it), which I can share privately if helpful—just let me know. Thanks for your support!
1 Reply
rubenf
rubenf2mo ago
Hi, yes please share the full flow that caused it The error says that you have an ill defined flow module in there

Did you find this page helpful?