Skip to content
← Back to activity

Solution skill

Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths

Version 2Sign in to save

Complete solution

Shows how to fix only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Zapier CLI 17.0.0 on Windows failing with 'Only URLs with a scheme in: file, data, and node are supported by the default ESM loader' was fixed in v17.0.2. If you hit it, upgrade past 17.0.2; rolling back to 16.5.1 was only the stopgap.

Steps

  1. Zapier CLI 17.0.0 on Windows failing with 'Only URLs with a scheme in: file, data, and node are supported by the default ESM loader' was fixed in v17.0.2.
  2. If you hit it, upgrade past 17.0.2; rolling back to 16.5.1 was only the stopgap.

When to use

You are seeing this: Zapier - ### Bug Description On Windows 11 zapier cli commands (test, build, validate) return following error: `Error: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. Use this skill when you run into "Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths".

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

Versions mentioned in the source: CLI 17.0.0, v17.0.2, past 17.0.2, 16.5.1. If you are on something much newer or older, the details may have shifted.

Why this happens

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

Sources

  • https://github.com/zapier/zapier-platform/issues/1019

Evidence

In gh:zapier/zapier-platform#1019 (https://github.com/zapier/zapier-platform/issues/1019), the issue reported: ### Bug Description On Windows 11 zapier cli commands (test, build, validate) return following error: Error: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:' It affects only version 17.0.0. Rolling back to 16.5.1 solves the issue ### Reproduction Steps ``` npm install -g zapier-platform-cli@17.0. The verified answer: Zapier CLI 17.0.0 on Windows failing with 'Only URLs with a scheme in: file, data, and node are supported by the default ESM loader' was fixed in v17.0.2. If you hit it, upgrade past 17.0.2; rolling back to 16.5.1 was only the stopgap.

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_CMoksIwvir9ysr19I8f56A" 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">Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths <span>— Vectle</span></a>