Skip to content

Using the SDK in browser environment not working #71

@daniel-soli

Description

@daniel-soli

I'm running a browser environment Vue application. When using the SDK it does not work because of "type": "module" in the package.json file. When running with this I get a "reuire not defined".
When removing that line manually in the sdk, everything works locally, but this does not work when deploying ofc.

Are there any reason for type module, since AFAIK it just got added in 3.3.8 ->?
Any tips on how to get it to work in browser environment?

I also noticed that permutation.ts uses require for blake2b, is it possible to set this up to be browserfriendly?

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