Skip to content

Not works well with Webpack (AMD package name wrong ?) #554

@k8w

Description

@k8w

When using with webpack (generate static code), it always compiled error:

ERROR in ../realtimeServer/src/proto/RealtimeServerProto.js
Module not found: Error: Cannot resolve module 'protobuf' in E:\Codes\ChartMaker\realtimeServer\src\proto
@ ../realtimeServer/src/proto/RealtimeServerProto.js 4:8-37

This problem can be resolved by modify the line 4 in generated .js file:

define(["protobuf"], factory);

modify to

define(["protobufjs"], factory);

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