Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List和Flex的type.d.ts会导致TS2604错误 #1495

Closed
bylevel opened this issue Jun 28, 2017 · 5 comments
Closed

List和Flex的type.d.ts会导致TS2604错误 #1495

bylevel opened this issue Jun 28, 2017 · 5 comments
Assignees
Labels

Comments

@bylevel
Copy link

bylevel commented Jun 28, 2017

Version

1.4.0

Environment

macOS 10.12.5, chrome, react@^15.5.4

Steps to reproduce

<List>
      <List.Item>
        <Link to="/equipments" onClick={this.onMenuToggle}>设备列表</Link>
      </List.Item>
</List>

What is actually happening?

error TS2604: JSX element type 'List.Item' does not have any construct or call signatures.


将 List 组件的 type.d.ts 中的static Item: ListItem; 改成 static Item: typeof ListItem; 就能正常编译

Flex组件也是同样的问题

@ant-design-bot
Copy link

It will be better to write your issue/comment in English, so more people can understand you.
And this means that more people can help you or benefit from your issue/comment.
See: ant-design/ant-design#4897

@bylevel bylevel closed this as completed Jun 29, 2017
@warmhug warmhug mentioned this issue Jun 29, 2017
9 tasks
@paranoidjk
Copy link
Contributor

@bylevel why close ? does your problems solved?

@bylevel
Copy link
Author

bylevel commented Jun 29, 2017

@paranoidjk because same #1502

@paranoidjk
Copy link
Contributor

@bylevel #1502 is a Pull Request to fix this issue, so your issue must keep open until #1502 is merged, thanks for your report.

@bylevel
Copy link
Author

bylevel commented Jul 10, 2017

at version 1.4.1 this problem solved.

@bylevel bylevel closed this as completed Jul 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants