Bug: Command deno add
logs error for JSR package without default export
#24607
Labels
bug
Something isn't working correctly
When using
deno add
, I get errors if there is any JSR package that has no default export (.
). For instance, installing@std/testing
will make it so errors are printed every time I rundeno add
command. The command itself seems to succeed anyway, but the CLI command fails with a non-zero exit code, and a pretty verbose error message is printed. Is it mandatory to have a default export? If so, perhaps@std/testing
should be updated, since it currently only has named subpath exports.Reproduction steps
deno add
with no.
export (e.g.@std/testing@0.225.3
)deno add @std/testing@0.225.3
@std/json
)Actual results
When installing
@std/testing@0.225.3
the following errors is printed:Installing another package via
deno add
(e.g.@std/json
) will print the same error again.Expected results
No errors
Environment
OS: Windows 11
deno 1.45.2 (release, x86_64-pc-windows-msvc)
v8 12.7.224.12
typescript 5.5.2
The text was updated successfully, but these errors were encountered: