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

TypeError: Cannot read property 'getFieldDecorator' of undefined #6493

Closed
devalexandre opened this issue Jun 15, 2017 · 3 comments
Closed

TypeError: Cannot read property 'getFieldDecorator' of undefined #6493

devalexandre opened this issue Jun 15, 2017 · 3 comments
Labels

Comments

@devalexandre
Copy link

Version

2.11.0

Environment

"antd": "^2.11.0", "react": "^15.6.1",

Reproduction link

https://gist.github.com/devalexandre/e9da23a6f0cfa231e852fef5842e30b4

Steps to reproduce

trying use a form

What is expected?

trying use a form

What is actually happening?

trying use a form, but don't work


TypeError: Cannot read property 'getFieldDecorator' of undefined

@hansnow
Copy link
Contributor

hansnow commented Jun 16, 2017

component Contato should be wrapped by Form.create()(), so change L53 to export default Form.create()(Contato)

@benjycui benjycui added the Usage label Jun 16, 2017
@ant-design-bot
Copy link
Contributor

Hello @devalexandre, we use GitHub issues to trace bugs or discuss plans of Ant Design. So, please don't ask usage questions here. You can try to ask questions on Stack Overflow or Segment Fault, then apply tag antd and react to your question.

@lock
Copy link

lock bot commented Jun 16, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants