Have you used the NPM_FLAGS
environment variable as I demonstrated here?
The author hasn’t updated this package in 5 years. It requires at most react 16 and you are using react 17. I would suggest finding a different package that has the same functionality that is still maintained.