denoland/deno · error · RangeError

Invalid range. Start value is bigger than end value: [${star

Error message

Invalid range. Start value is bigger than end value: [${start}, ${end}]

What it means

The downloaded, checksum-verified cache for the backend contains no `.app` bundle on a macOS target. As the message notes, this typically means that backend simply does not ship as an app for the requested target — a packaging-completeness gap rather than a corrupt download.

Source

Thrown at cli/js/40_lint.js:395

    return this.sourceCode;
  }

  /**
   * @param {Deno.lint.ReportData} data
   */
  report(data) {
    const range = data.node ? data.node.range : data.range ? data.range : null;
    if (range == null) {
      throw new Error(
        "Either `node` or `range` must be provided when reporting an error",
      );
    }

    const start = range[0];
    const end = range[1];

    if (start > end) {
      throw new RangeError(
        `Invalid range. Start value is bigger than end value: [${start}, ${end}]`,
      );
    }

    /** @type {Deno.lint.Fix[]} */
    const fixes = [];

    if (typeof data.fix === "function") {
      const fixer = new Fixer();
      const result = data.fix(fixer);

      if (Symbol.iterator in result) {
        for (const fix of result) {
          fixes.push(fix);
        }
      } else {
        fixes.push(result);
      }

View on GitHub (pinned to 89f33cbef2)

Solutions

  1. Switch to a backend/target combination that ships an `.app` (the mainstream Apple targets)
  2. Update Deno in case newer laufey releases added the missing packaging
  3. Clear the cache and re-run once to rule out a truncated extraction
  4. If the combination should be supported, report a bug against laufey packaging
Defensive patterns

Strategy: validation

Validate before calling

const BACKENDS_SHIPPING_APP = new Set(['default' /* fill from laufey release notes */]);
const needsApp = target.includes('apple');
if (needsApp && !BACKENDS_SHIPPING_APP.has(backend)) {
  throw new Error(`backend '${backend}' has no .app for ${target} — pick a shipped combination`);
}

Prevention

When it happens

Trigger: Requesting a backend whose laufey release includes only a plain binary (no `.app`) for the chosen macOS target; or a release where the app packaging for that combination was omitted.

Common situations: Using a newer/less common backend on macOS; cross-target use where app packaging exists only for the primary Apple targets.

Related errors


AI-assisted analysis of denoland/deno@89f33cbef2 (2026-08-16). Data as JSON: /api/errors/cf5df994ba422d90. Report an issue: GitHub.