Browser: Chrome 123.0.6312.123 (Official Build) (64-bit)
OS: Windows 11
Bundles versions:
"video.js": "^8.10.0",
"videojs-contrib-eme": "^5.1.0",
After upgrading "videojs" and "videojs-contrib-eme" to the newest versions of the libraries, when videojs instance "dispose" method is called, the bundles are throwing the following errors

Previous versions of the libraries are the following:
"video.js": "^7.12.3",
"videojs-contrib-eme": "^3.8.1"
I couldn't reproduce the issue for "videojs-contrib-eme" 4.0.1
Does anybody know what is causing the issue?