final-form / final-form/react-final-form-arrays

Cannot read property 'validators' of undefined" in final-form when change version of final-form-arrays

Open
#158 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
210
Forks
69
PR merge metrics
No merged PRs in 30d

Description

### Are you submitting a **bug report** or a **feature request**?

Bug report

### What is the current behavior?

Changing version of final-form-arrays in simple example causes error "Cannot read property 'validators' of undefined" in final-form. Steps to reproduce:
1. Open [simple example](https://codesandbox.io/s/kx8qv67nk5) from docs
2. Change version of final-form-arrays
`- "final-form-arrays": "1.1.2",`
`+ "final-form-arrays": "^1.1.2",`
3. Add customer in the list
4. Remove customer from the list with click on ❌

### What is the expected behavior?

Project works properly

### Sandbox Link

[Simple example with changed final-form-arrays version ](https://codesandbox.io/s/react-final-form-field-arrays-forked-2wntc)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.