Skip to content

Buffer not defined error with Meteor 1.5-beta.17+ #179

@akanix42

Description

@akanix42

In Meteor 1.5, the Buffer polyfill will no longer being included by default (as noted here: meteor/meteor#8645).
This breaks vue-component-dev-client.
The fix is to add this line to load the buffer yourself prior to import from node_modules:

global.Buffer = global.Buffer || require("buffer").Buffer;

I fixed it locally by creating a buffer.js file with the above line and making it the first import in dev-client.js.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions