Skip to content

[Bug] Uncaught reference Buffer #16

@joshlopes

Description

@joshlopes

I'm using webpack and adding the buffer plugin:

    buffer: [stdLibBrowser.buffer, 'Buffer']

Axios lib works with this and finds buffer and all the other bits but not this lib, I get the following error:

image

If I change my plugin to a capital "B"

Buffer: [stdLibBrowser.buffer, 'Buffer']

This works for the plugin but fails on compiling axios

"./node_modules/axios/lib/helpers/toFormData.js" contains a reference to the file "/Users/user/work/project/node_modules/node-stdlib-browser/node_modules/buffer".
This file can not be found, please check it for typos or update it if the file got moved.

Not sure how to solve it.

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