Skip to content

Uncaught ReferenceError: Buffer is not defined #10

Closed

Description

@AntonOfTheWoods

Since moving to the @foldable deps this is no longer browser-compatible.

Activity

  1. amitguptagwl commented on Jul 30, 2026

    @amitguptagwl
    Member

    I've recently shifted to use flexible-xml-parser. Parser uses Buffer.from() somewhere but I'm able to generate browser bundle without any additional config. Can you please share more details on it?

  2. AntonOfTheWoods commented on Jul 30, 2026

    @AntonOfTheWoods
    Author

    I was also able to generate a browser bundle too, I just wasn't able to run it in a browser. Maybe I could have tried to polyfill but because I wasn't using it heavily, I decided to do things another way and remove the dep altogether. Sorry I can't be more help.

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