We have upgraded to React 17 and since then we get Cannot read property 'removeEventListener' of null.
Mostly happens when component updates after state change.
React version: 17

No error
馃憢Could you please share a reproducible example on https://codesandbox.io or as a repo?
Could it be this?
https://reactjs.org/blog/2020/08/10/react-v17-rc.html#potential-issues
Probably ! Unfortunately seems to be coming from a library so we will check with them to fix this.
Thanks for the help.
Cheers
We had the same issue, can confirm it came from rc-virtual-list which is an Ant Design Select dependency.
We resolved it by using rc-virtual-list 3.2.0
Most helpful comment
Could it be this?
https://reactjs.org/blog/2020/08/10/react-v17-rc.html#potential-issues