Skip to content

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

Open
@daisy1754

Description

@daisy1754

🐛 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"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions