类型'ReactType'不是通用的(material-ui @ next) [英] Type 'ReactType' is not generic (material-ui@next)
本文介绍了类型'ReactType'不是通用的(material-ui @ next)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我安装材料ui @ next,我在节点模块中出现此错误。
i install material ui@next and i have this error in node modules.
[at-loader]中的错误./node_modules/ material-ui / Avatar / Avatar.d.ts:8:15
11:31:52 web.1 | TS2315:类型'ReactType'不是通用的。
11:31:52 web.1 | [at-loader]中的错误./node_modules/material-ui/Button/Button.d.ts:7:15
11:31:52 web.1 | TS2315:类型'ReactType'不是通用的。
11:31:52 web.1 | [at-loader]中的错误./node_modules/material-ui/ButtonBase/ButtonBase.d.ts:10:15
11:31:52 web.1 | webpack:无法编译。
推荐答案
执行 npm update @types /反应
。
在最新版本中,ReactType是通用的
Do an npm update @types/react
.
In the latest version ReactType is generic
这篇关于类型'ReactType'不是通用的(material-ui @ next)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文