使用Material-ui-next时类型上的属性不存在

Bom*_*bel 6 typescript reactjs material-ui

当尝试使用React 16.3和TypeScript 从material-ui-next网站呈现TextField时,出现以下错误:

Property 'label' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<TextField> & Readonly<{ children?: ReactNode; }> 
Run Code Online (Sandbox Code Playgroud)

我的组件的测试通过了,但是没有建立。

<TextField
      id="name"
      label="Name"
      className={classes.textField}
      value={this.state.name}
      onChange={this.handleChange('name')}
      margin="normal"
    />
Run Code Online (Sandbox Code Playgroud)

编辑:5.04.2018

我发现了此错误的原因。我安装了一个@ types / material-ui软件包,由于某种原因,TypeScript具有比实际material-ui软件包内的类型定义更高的优先级。我删除了它,一切正常。