You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Long running issue... I'm trying to publish @cross/test to jsr. This library does a conditional import of bun:test if running Bun, and this error pops up while trying to publish - https://jsr.io/docs/troubleshooting#invalidexternalimport
The code is dynamically imported, so it would never execute in Deno
The text was updated successfully, but these errors were encountered:
Hexagon
changed the title
Cannot publish package using bun: import specifier: invalidexternalimport
Cannot publish jsr package using bun: import specifier: invalidexternalimport
Nov 21, 2024
Hexagon
changed the title
Cannot publish jsr package using bun: import specifier: invalidexternalimport
Cannot publish jsr package using bun:-import specifier, error: invalidexternalimport
Nov 21, 2024
Version: Deno
1
,2
and2.1
Long running issue... I'm trying to publish
@cross/test
to jsr. This library does a conditional import ofbun:test
if running Bun, and this error pops up while trying to publish - https://jsr.io/docs/troubleshooting#invalidexternalimportThe code is dynamically imported, so it would never execute in Deno
... and the actual problem is in
./shims/bun.ts
(which again is conditionally imported):I originally posted this in as an issue in jsr-io/jsr (jsr-io/jsr#599) , but have figured out that the problem may live in Deno itself:
An outdated error message (as bun-specifiers should be supported by now):
deno/cli/tools/registry/diagnostics.rs
Line 479 in dd8cbf5
And a function potentially missing a case for
bun:
:deno/cli/tools/registry/graph.rs
Line 35 in dd8cbf5
The text was updated successfully, but these errors were encountered: