project_graphql_blog icon indicating copy to clipboard operation
project_graphql_blog copied to clipboard

TypeError: Cannot read properties of undefined (reading 'map')

Open GitCulture opened this issue 3 years ago • 1 comments

Unhandled Runtime Error TypeError: Cannot read properties of undefined (reading 'map')

Source sections\FeaturedPosts.jsx (57:37) @ FeaturedPosts

<div className="mb-8">
<Carousel infinite customLeftArrow={customLeftArrow} customRightArrow={customRightArrow} responsive={responsive} itemClass="px-4">
 {dataLoaded && featuredPosts.map((post, index) => (
                    ^
<FeaturedPostCard key={index} post={post} />
)}
 </Carousel>

GitCulture avatar Feb 07 '22 13:02 GitCulture

did you declare or initialize it ?

tuankietcoderr avatar Feb 07 '22 16:02 tuankietcoderr