-
-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module '"hono/jsx"' declares 'FC' locally, but it is not exported.ts #2568
Comments
https://hono.dev/guides/jsx#propswithchildren Ref: #2142 |
This can be closed. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of Hono are you using?
2.7.8
What runtime/platform is your app running on?
cloudflare workers or just plain node - same
What steps can reproduce the bug?
as per this guide:
https://hono.dev/guides/jsx#jsx
try to create a JSX module and add the line:
import type { FC } from 'hono/jsx'
will give compiler error:
Module '"hono/jsx"' declares 'FC' locally, but it is not exported.ts(2459)
What is the expected behavior?
should be able to create JSX modules
What do you see instead?
Additional information
and in the file in question:
it is indeed just declared and not exported:
node_modules/hono/dist/types/middleware/jsx/index.d.ts
declare type FC<T = Props> = (props: T) => HtmlEscapedString;
The text was updated successfully, but these errors were encountered: