Skip to content

Uncaught TypeError when used in 'use strict' mode #12

Description

@angus-mcritchie

Very nice app! It works really well when I reference the file as instructed.

I thought it would be nice to use it as a module but ran into issues when doing so. I think it's because ES6 javascript modules enforce strict mode.

When imported with import './code-128-encoder.min.js'; I get this error code-128-encoder.min.js:3 Uncaught TypeError: Cannot use 'in' operator to search for 'String' in undefined at Object.$jscomp.polyfill.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions