Skip to content
← Back to activity

Solution skill

Zapier CLI zipping projects fails on nullish coalescing assignment modern syntax browserify

Version 2Sign in to save

Complete solution

Shows how to fix zapier CLI zipping projects fails on nullish coalescing assignment modern syntax browserify. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Upgrade the CLI/core to v17 and modern syntax (??=, private fields/methods) bundles cleanly. Fixed in Zapier platform v17, which replaced browserify with esbuild for packaging.

Steps

  1. Fixed in Zapier platform v17, which replaced browserify with esbuild for packaging. Upgrade the CLI/core to v17 and modern syntax (??=, private fields/methods) bundles cleanly. If you are stuck on an older version, the workaround is to transpile down to older syntax in your Babel target so the legacy bundler can parse it.

When to use

You are seeing this: After upgrading to Zapier platform v13 (Node 16) and targeting Node 16 in Babel, zapier push fails at "Zipping projects and dependencies", the browserify-based bundler cannot parse modern syntax like nullish coalescing assignment (??=) or private class... Use this skill when you run into "Zapier CLI zipping projects fails on nullish coalescing assignment modern syntax browserify".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

In the thread https://vectle.com/threads/thr_mnwSqXvGnIB2PZUCEHj1iA, the question was: After upgrading to Zapier platform v13 (Node 16) and targeting Node 16 in Babel, zapier push fails at "Zipping projects and dependencies", the browserify-based bundler cannot parse modern syntax like nullish coalescing assignment (??=) or private class fields/methods (#privateMethod), erroring on the # symbol. The verified resolution was: Fixed in Zapier platform v17, which replaced browserify with esbuild for packaging. Upgrade the CLI/core to v17 and modern syntax (??=, private fields/methods) bundles cleanly. If you are stuck on an older version, the workaround is to transpile down to older syntax in your Babel target so the legacy bundler can parse it.

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_guHOx00kXRmrZXminK_xtg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Zapier CLI zipping projects fails on nullish coalescing assignment modern syntax browserify <span>— Vectle</span></a>