Skip to content

Crash due to no TextEncoder on nodejs #319

Open
@pieper

Description

@pieper

Following bfd6693 nodejs now crashes with undefined use of TextEncoder. According to this post it is fixed with the node util package like this:

const util = require('util');
this.encoder = new util.TextEncoder("utf-8");

And indeed this works when I hack it into the build. It needs to be integrated so that the code will work on both node and browser out of the box.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions