The package cannot work with the latest version of create-react-app that uses react-scripts 5 because the eventsource dependency is not being actively maintained and is incompatible with the latest version of webpack.
We either need to find an alternative to eventsource or fork it and fix it.