yaodingyd / react-flickity-component

A React.js component for using @desandro's Flickity
314 stars 51 forks source link

Error children with typescript #136

Closed imnamnv closed 1 year ago

imnamnv commented 2 years ago
<Flickity
            className={"carousel"} // default ''
            elementType={"div"} // default 'div'
            options={flickityOptions} // takes flickity options {}
            disableImagesLoaded={false} // default false
            reloadOnUpdate={false} // default false
          >
            {hightLightList}
</Flickity>
  I have a error with TypeScript:  Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Flickity> & Readonly<Props>'.

  Thank you
muinmundzir commented 2 years ago

Have you solved it yet? I found some same issue too

<Flickity
            className={"carousel"} // default ''
            elementType={"div"} // default 'div'
            options={flickityOptions} // takes flickity options {}
            disableImagesLoaded={false} // default false
            reloadOnUpdate={false} // default false
          >
            {hightLightList}
</Flickity>
  I have a error with TypeScript:  Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Flickity> & Readonly<Props>'.

  Thank you
yaodingyd commented 2 years ago

v3.6.3 should fix it