Learus / react-material-ui-carousel

A Generic carousel UI component for React using Material UI.
MIT License
550 stars 219 forks source link

Warning: React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object. #224

Open klals opened 11 months ago

klals commented 11 months ago

I use React Remix with import Carousel from 'react-material-ui-carousel' import { Paper } from '@mui/material'

{ items.map( (item, i) => ) }
    function Item({ item }: { item: any }) {
const media = useMediaQuery('(max-width:600px)');
return (
    <div className="wrap-custom-div">

          <img src={item.image}  />
        <div className="carousel-content">
            <i>{item.quote}</i>

            <h3> {item.name} </h3>
            <h5> {item.title} </h5>
        </div>
    </div>
)

}

how can i resovle

yarkovaleksei commented 5 months ago

I have the same error in production. In dev mode everything works.