xzdarcy / react-timeline-editor

react-timeline-editor is a react component used to quickly build a timeline animation editor.
https://zdarcy.com/
MIT License
284 stars 82 forks source link

Peer dependency conflict with react > 16 (workaround: npm install --force) #33

Open rewbs opened 1 year ago

rewbs commented 1 year ago

Hi, thanks again for the great component.

This component uses react-virtualized@9.22.3 which does not declare compatibility with versions of react and react-dom above 16. As a result, using react-timeline-editor with a recent version of react results in npm install failing with a peer dependency conflict.

I'm using react 18 and, in my work so far, I've seen no actual compatibility issues if I work around the error with npm install --force. However, that command can be dangerous so it would be great to stop using it.

The solution would be for react-virtualized to officially declare compatibility with recent versions of react. The problem is, it seems react-virtualized is deprecated and unlikely to get updates, so we'd need react-timeline-editor to switch to react-window.

If anyone has any better workaround, let me know! :)