Skip to content

Uncaught Error: No encoding-indexes.js #386

@tvpmb

Description

@tvpmb

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

image

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions