JavaScript for WordPress › Forums › Gatsby › Gatsy basics second last class “mdx-remark-images This topic has 1 reply, 2 voices, and was last updated 4 years, 2 months ago by Zac Gordon. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts July 13, 2020 at 12:01 pm #141930 Philip SavarirayanParticipant Im getting this error, dunno why: TypeError: Cannot read property ‘children’ of undefined MDXImage C:/Users/Admin/Desktop/gatsby-demos-zechg/mdx-blog/src/components/mdx-image-wrapper.js:9 6 | width: width || “50%”, 7 | margin: margin || “10px”, 8 | } > 9 | return <div style={style}>{children.props.children}</div> 10 | } 11 | export default MDXImage View compiled July 14, 2020 at 12:30 pm #141945 Zac GordonKeymaster Try logging out the value to see why it is empty? Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In