`deno bundle` gives confusing error message when dependency is newer than `min-dep-age`
Author: lionel-roweCreated Sep 24, 2026Updated Sep 24, 2026
Version: Deno 2.9.7
Example (at time of writing, depends on when package was published):
deno bundle jsr:@li/[email protected]Output:
⚠️ deno bundle is experimental and subject to changes
error: Do not know how to load path: deno:jsr:@li/[email protected]
error: bundling failedActual error is due to https://github.com/denoland/deno/issues/36358, and the fix is to add --min-dep-age=0 flag, but there's no way to know that from the error message.
Ideally the error messages from import-ing and deno bundle-ing would both specify that supplying the --min-dep-age flag is the fix.
Source: denoland/deno