{"record":{"id":"cf5df994ba422d90","repo":"denoland/deno","slug":"invalid-range-start-value-is-bigger-than-end-valu","errorCode":null,"errorMessage":"Invalid range. Start value is bigger than end value: [${start}, ${end}]","messagePattern":"Invalid range\\. Start value is bigger than end value: \\[(.+?), (.+?)\\]","errorType":"exception","errorClass":"RangeError","httpStatus":null,"severity":"error","filePath":"cli/js/40_lint.js","lineNumber":395,"sourceCode":"    return this.sourceCode;\n  }\n\n  /**\n   * @param {Deno.lint.ReportData} data\n   */\n  report(data) {\n    const range = data.node ? data.node.range : data.range ? data.range : null;\n    if (range == null) {\n      throw new Error(\n        \"Either `node` or `range` must be provided when reporting an error\",\n      );\n    }\n\n    const start = range[0];\n    const end = range[1];\n\n    if (start > end) {\n      throw new RangeError(\n        `Invalid range. Start value is bigger than end value: [${start}, ${end}]`,\n      );\n    }\n\n    /** @type {Deno.lint.Fix[]} */\n    const fixes = [];\n\n    if (typeof data.fix === \"function\") {\n      const fixer = new Fixer();\n      const result = data.fix(fixer);\n\n      if (Symbol.iterator in result) {\n        for (const fix of result) {\n          fixes.push(fix);\n        }\n      } else {\n        fixes.push(result);\n      }","sourceCodeStart":377,"sourceCodeEnd":413,"githubUrl":"https://github.com/denoland/deno/blob/9ad36f7a2cce60488e6ec52283efb32efddaf93a/cli/js/40_lint.js#L377-L413","documentation":"After resolving a version from the npm.jsr.io metadata document, the code walks `versions[<version>].dist.tarball` to find where to download the package tarball. If any hop in that chain is missing — the version entry exists but has no `dist` object or no `tarball` string — the metadata is considered malformed for that version and this error names the registry name and resolved version.","triggerScenarios":"The fetched metadata JSON parses but lacks `versions -> <resolved_version> -> dist -> tarball`: partially replicated metadata on npm.jsr.io (version listed but dist data missing), a yanked/partially-published release, or a registry-side schema change. Distinct from a parse failure (that is the sibling 'Failed to parse metadata' error).","commonSituations":"A jsr package published moments ago whose npm-mirror metadata has not fully replicated; yanked versions; registry incidents; pinning an exact version that the mirror cannot serve a tarball for.","solutions":["Retry after a short delay — npm.jsr.io replication lag usually resolves itself","Pin a different, known-good version of the jsr: dependency in your import map/deno.json","Verify what the registry reports: fetch the metadata URL and check `versions[<version>].dist.tarball` yourself","If it persists for a stable published version, report it to the JSR maintainers"],"exampleFix":"# before (version mirror metadata incomplete)\n\"imports\": { \"@luca/flag\": \"jsr:@luca/flag@1.0.2\" }\n# No tarball URL for @luca/flag@1.0.2\n\n# after\n\"imports\": { \"@luca/flag\": \"jsr:@luca/flag@1.0.1\" }  # or retry once replication catches up","handlingStrategy":"retry","validationCode":"# Confirm the exact version has a tarball URL in published metadata\ncurl -fsSL https://npm.jsr.io/@scope/pkg | jq -e --arg v \"$VER\" '.versions[$v].dist.tarball != null'","typeGuard":null,"tryCatchPattern":"On /No tarball URL for/ in automation, retry after ~a minute (replication lag); after N failures, programmatically fall back to the previously pinned good version from the lockfile/deno.json and flag the package for investigation.","preventionTips":["Commit a lockfile so CI does not resolve freshly-published versions immediately","Pin exact versions for critical jsr: dependencies","Wait for metadata replication (or verify with curl) before rolling out a brand-new release to CI"],"tags":["registry","tarball","jsr","metadata","install"],"backgroundTag":"registry-metadata-missing-field","analyzedSha":"9ad36f7a2cce60488e6ec52283efb32efddaf93a","analyzedAt":"2026-08-20T13:07:44.778Z","contentChangedAt":"2026-08-20T13:07:44.778Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}