Skip to content

TypeError: buffer.utf8Write is not a function #3

Description

@OldManMeta

Hi,

I am trying to pack a string. I take a javascript object, then stringify it to JSON and try to pack it.

I keep getting the error:

TypeError: buffer.utf8Write is not a function

var jsonSTR = JSON.stringify(jsonObject); var compressed = serialize(jsonSTR);

This is a Typescript REACT application.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions