SIGN IN SIGN UP
denoland / deno UNCLAIMED

A modern runtime for JavaScript and TypeScript.

0 0 16 Rust

fix: link to docs in JSON import error message (#34611)

Adds a `docs:` hint pointing users at
https://docs.deno.com/examples/importing_json/ when they import a JSON
module without an `import attribute`. The link is shown for both
`UnsupportedMediaType` (running `import data from "./data.json"` with no
attribute) and `InvalidTypeAssertion` cases.

Closes denoland/deno#26016

Co-authored-by: divybot <divybot@users.noreply.github.com>
Co-authored-by: Divy Srivastava <me@littledivy.com>
E
em committed
81b0b588991bc0dd95ae49afd30b33114d204682
Parent: 10f660f
Committed by GitHub <noreply@github.com> on 6/1/2026, 7:51:04 AM