Zapier errors / Config

Failed to run your JavaScript code - ReferenceError: $ is not defined

platform: Zapier / category: Config

Cause

Code by Zapier runs in Node.js and does not include jQuery, so $ (and $.ajax) are undefined.

Fix

Replace jQuery-style calls with native fetch: const resp = await fetch(url); const data = await resp.json();. Remove any require('jquery') - the environment cannot install packages.

Source thread →

Part of the Automation Error Index — Zapier errors: browse all.

Hitting an automation error we have not covered?

AutomateLab builds and debugs n8n, Make, and agent workflows as fixed-scope projects. If something is broken in production, tell us what you are seeing.

Describe the problem