Skip to content

/esm5/ isn't an ES module #23

@appsforartists

Description

@appsforartists

I expected this to use the ES2015 export { BrowserQRCodeSvgWriter } syntax. Instead, it uses CommonJS's require.

I suspect your tsconfig needs to be updated to export proper ES modules (module: "ES2015"), or your transpiled folder should be renamed cjs.

https://unpkg.com/@zxing/[email protected]/esm5/browser/BrowserQRCodeSvgWriter.js

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