Skip to content
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

Property 'children' does not exist on type 'IntrinsicAttributes' #1828

Open
daisy1754 opened this issue Jan 24, 2025 · 1 comment
Open

Property 'children' does not exist on type 'IntrinsicAttributes' #1828

daisy1754 opened this issue Jan 24, 2025 · 1 comment

Comments

@daisy1754
Copy link

🐛 Bug Report

I am getting build error on my project where I want to introduce react-i18next. Project builds fine until I importreact-i18next and start using it. Build error is as follows

error TS2322: Type '{ children: Element; asChild: true; }' is not assignable to type 'IntrinsicAttributes & DropdownMenuTriggerProps & RefAttributes'.
Property 'children' does not exist on type 'IntrinsicAttributes & DropdownMenuTriggerProps & RefAttributes'.

We suspect it's because react-i18next overrides IntrinsicAttributes here.

i18nIsDynamicList?: boolean;

Your Environment

Node.js v22.5.1
"react-i18next": "^15.4.0"
"typescript": "^5.6.2"

@adrai
Copy link
Member

adrai commented Jan 24, 2025

Please provide a minimal reproducible example repository.

@marcalexiei marcalexiei removed their assignment Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants