Workflow Errors importing custom javascript libraries

I've been using Workflow > Settings > Javascript Settings to import custom libraries like:

const { z } = require('zod');

This has been working fine for the past couple of months - but today ~ 3:10PM EST this custom import has stopped working. I now see errors on the offending code blocks:

Error: Cannot find module 'zod' Require stack: - /tmp/src/runMultipleBlocksHandler.js (line -2)

These errors don't seem to bubble up through Error Handler workflows properly either.

1 Like

Hi @Aaron_Westbrook! Welcome to the community. :wave:

Can you check to confirm that zod is still showing up in the list of JavaScript libraries, as well?

Because this error is technically being thrown outside the actual execution of the workflow, I'm not surprised that it isn't being caught by those established handlers.

I know this is kind of a tangent, but I just found this and it looks promising.

1 Like

Thanks Darren - it was not in the list. Added it and it is working again!

1 Like