Skip to content

Release 8.1.5 introduced errors. Argument of type 'ReactElement' is not assignable to parameter of type 'Element' #109

@yoriiis

Description

@yoriiis

Hello @alex-kinokon,

I use this package on several projects without any problems, but it seems that the latest version 8.1.5 has introduced some errors. The following code

// index.tsx
document.body.insertAdjacentElement('afterbegin', <div>Hello</div>)

generates this error

TS2345: Argument of type 'ReactElement' is not assignable to parameter of type 'Element'.
  Type 'DocumentFragment' is missing the following properties from type 'Element': attributes, classList, className, clientHeight, and 109 more.

With the previous version 8.1.4 there are no errors. I use the automatic runtime with jsx-dom-cjs.

I'm available if you need more info. Thanks to you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions