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
Deno can typecheck and compile everything, deno task test demonstrates that the jsx setup works.
Publishing to jsr, however, fails:
PS C:\Users\mail\projects\jsr_with_custom_jsx> deno publish
Checking for slow types in the public API...
'@aljoscha-meyer/jsr-with-custom-jsx' doesn't exist yet. Visit https://jsr.io/new?scope=aljoscha-meyer&package=jsr-with-custom-jsx&from=cli to create the package
Waiting...
Package @aljoscha-meyer/jsr-with-custom-jsx created
Visit https://jsr.io/auth?code=VJVU-QVQF to authorize publishing of @aljoscha-meyer/jsr-with-custom-jsx
Waiting...
Authorization successful. Authenticated as Aljoscha Meyer
Publishing @aljoscha-meyer/[email protected] ...
error: Failed to publish @aljoscha-meyer/[email protected]
Caused by:
Failed to publish @aljoscha-meyer/jsr-with-custom-jsx at 1.0.0: failed to build module graph: Module not found "file:///macromaniajsx/jsx-runtime".
at file:///mod.tsx:1:50
Publishing does work when depending on the runtime locally: see this deno.json whose package successfully published to jsr.
I have been unable to publish packages to jsr which import a custom
jsx-runtime
from jsr.Here is a minimal repository that reproduces the issue.
In that repo, I correctly configure a custom jsr runtime:
Deno can typecheck and compile everything,
deno task test
demonstrates that the jsx setup works.Publishing to jsr, however, fails:
Publishing does work when depending on the runtime locally: see this
deno.json
whose package successfully published to jsr.I'm on Windows 10, with deno 2.3.1:
The text was updated successfully, but these errors were encountered: