Closed appMatthewH closed 2 years ago
Hey @appMatthewH! Thanks for the issue. Can you share the full non-edited logs (with the invocation)? Also maybe give an idea what the snapshot file looks like?
This issue is stale because it has been open for more than 14 days with no activity. Remove stale label or comment or this will be closed in 14 days.
This issue was closed because it has been stalled for 28 days with no activity.
Hey @Robdel12, just want to pitch in here as I hit this error today on v1.10.0 of the CLI, also on Windows. The reason this is happening is in https://github.com/percy/cli/blob/master/packages/cli-snapshot/src/snapshot.js#L134. path.resolve
only returns an absolute path (not a URL) on Windows. Prefixing it with file://
fixes the issue.
Hey @christjt, thanks for the clarification on this issue around where its happening!
I just pushed #1055 to address this, which will go out with the next release. 👍
The problem
When performing a snapshot run, I receive the following error. This happened after updating from percy/cli-beta.076 to percy/cli.1.0.3
Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'
This is only happening in my Windows environment. When running on Linux or Mac, i have not experienced this.
Environment
v16.13.0
@percy/cli
version:@percy/cli 1.0.3
Debug logs