Closed bkerin closed 4 days ago
Hi @bkerin
Try to change deno.json
:
{
"compilerOptions": {
"jsx": "react-jsx",
"jsxFragmentFactory": "Fragment",
"jsxImportSource": "@hono/hono/jsx"
}
}
We can close this. If you still have the problem, feel free to reopen.
What version of Hono are you using?
4.5.3
What runtime/platform is your app running on?
Deno
What steps can reproduce the bug?
The docs at https://hono.dev/docs/guides/jsx suggest these pragmas:
But they don't work with my setup (which consists of all import for hono using versioned jsr specifiers, e.g
import { Hono } from "jsr:@hono/hono@4.5.3"
). Deno complains like for example this:So I assume the problem is lack of versioning in the pragma, but using the full import import specifier doesn't work either:
results in:
It turns out that leaving out the @jsx jsx pragma entirely and using the full import specifier like this:
Seems to work, though I don't exactly know why. For docs on the way to get this working with deno it would be really nice to get the way to do it without compilerOptions, as one of the selling points on deno is the use of standard import and no need for extensive configuration files.
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
No response