Error withRef is removed. To access the wrapped instance, use a ref on the connected component when using Redux Form

Just update to the latest version of redux-form (8.1.0). There is no need to downgrade.


I had the same problem, apparently redux-form doesn't work well yet with react-redux version greater then 6.

For me what helped is downgrading the react-redux package to version 5:

npm install [email protected] --save

While the above does work, if you'd like to use the latest, all you need to do is refactor your class component to a function component. Look for the withRef() API. (Please upvote this as the correct answer to help other devs.)

https://redux-form.com/7.1.2/docs/api/fieldarray.md/#props-you-can-pass-to-code-fieldarray-code-