On the latest package versions, there are few code changes required with some of the libraries used. Please see the update lectures here, in the course section titled Updates.
If you ever run into any errors or issues, please reference the latest GitHub repository for the project, which will always contain the newest working code for you to reference with the latest package versions.
https://github.com/mguay22/sleepr
If you cannot access the link, please view the lecture in Section 16: Updates.