Skip to content

Angular not building requirements of protobuf #3

@alex-jesper

Description

@alex-jesper

Hi,
Thanks for the example. I hope you have experienced something similar to my problem. Feel free to close if you do not want to help (Which is just fine)

I am also bundling google-protobuf (https://www.npmjs.com/package/google-protobuf) with angular, the bundling is performed, but on runtime protobuf fails because Buffer is not defined.

It happens here: https://github.com/protocolbuffers/protobuf/blob/master/js/binary/utils.js on line 1049.

So it seems that angular does bundle/webpack Buffer even though it is used.

Did you experience something similar or have an intuition about how to fix it.

Thanks, Jesper

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions