0
在一个阵营项目中使用材料的UI @未来图书馆和打字稿, 这里是我的代码打字稿型,设在节点模块中不出现工作
<CardMedia image={item.image_url} style={{ width: 238, height: 124.5 }}
/>
,我发现了错误
(54,19): error TS2339: Property 'image' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<CardMedia> & Readonly<{ children?: ReactNode; }> &...'.
CardMedia具有图像支撑https://material-ui-1dab0.firebaseapp.com/demos/cards/#media
该接口具有图像支撑https://github.com/callemall/material-ui/blob/v1-beta/src/Card/CardMedia.d.ts(我检查。它存在于我的本地节点模块)
有什么可能导致这样的问题?我的配置有问题吗?