Just encountered this intermittent issue with the vtt.min.js library. When loaded in a browser, it occassionally throws this error and stops execution:

Sometimes it blocks execution, sometimes it works, either way when in the context of a web browser this is not needed, per the code comments:
// If we're in node require encoding-indexes and attach it to the global.
if (typeof module !== "undefined" && module.exports) {
this["encoding-indexes"] = require("./encoding-indexes.js")["encoding-indexes"];
}
Any ideas? We're going to remove it at this point from our build...
Just encountered this intermittent issue with the vtt.min.js library. When loaded in a browser, it occassionally throws this error and stops execution:
Sometimes it blocks execution, sometimes it works, either way when in the context of a web browser this is not needed, per the code comments:
Any ideas? We're going to remove it at this point from our build...