We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I'm using components/HankoAuth.tsx for nextjs, more or less straight from your docs.
components/HankoAuth.tsx
Upgrading @types/react to ^19.0.0 gives me an
@types/react
^19.0.0
Property 'hanko-auth' does not exist on type 'JSX.IntrinsicElements'.ts(2339)
error.
Same thing happens for <hanko-profile />.
<hanko-profile />
I have googled around a bit and this might be related to the leading small letter of <hanko-auth />?
<hanko-auth />
"@types/react": "^18.3.3",
still works
upgrade @types/react to ^19.0.0
"@teamhanko/hanko-elements": "^1.4.0",
None
No response
The text was updated successfully, but these errors were encountered:
And I was thinking, I'm the only one with this issue...any fix beyond downgrading?
Sorry, something went wrong.
Staring from React 19 the JSX namespace is not longer global but react scoped. As a workaround you can add a new file (e.g. "custom.d.ts") with:
import { HankoAuthElementProps, HankoProfileElementProps, HankoEventsElementProps } from "@teamhanko/hanko-elements"; declare module "react" { namespace JSX { interface IntrinsicElements { "hanko-auth": HankoAuthElementProps; "hanko-login": HankoAuthElementProps; "hanko-registration": HankoAuthElementProps; "hanko-profile": HankoProfileElementProps; "hanko-events": HankoEventsElementProps; } } }
More information about it can be found here
FreddyDevelop
IAm2XTr33M
Successfully merging a pull request may close this issue.
Checklist
Describe the bug
Hi,
I'm using
components/HankoAuth.tsx
for nextjs, more or less straight from your docs.Upgrading
@types/react
to^19.0.0
gives me anProperty 'hanko-auth' does not exist on type 'JSX.IntrinsicElements'.ts(2339)
error.
Same thing happens for
<hanko-profile />
.I have googled around a bit and this might be related to the leading small letter of
<hanko-auth />
?still works
Reproducing the bug
upgrade @types/react to ^19.0.0
Logs
Configuration
Hanko Version
OS Hanko Backend
None
OS Version Hanko Backend
No response
OS
None
OS Version
No response
Browser Version
No response
Environment
None
Additional Context
No response
The text was updated successfully, but these errors were encountered: