wechaty / grpc

gRPC Service & Protocol Buffers for Wechaty Puppet
https://wechaty.github.io/grpc/
Apache License 2.0
25 stars 22 forks source link

Error: Cannot find module './google/api/annotations_pb.js' #113

Closed huan closed 3 years ago

huan commented 3 years ago

Related issues:

huan commented 3 years ago

It turns out that the annotations_pb.js should be generated by ourselves.

Solution

Add annotations.proto to protoc for generating js stubs.

https://github.com/wechaty/grpc/blob/5cabc934a8671a162ba8b541c0d56d9720d55097/scripts/generate-stub.sh#L13

See:

yangyile1990 commented 7 months ago

You are right:

Add annotations.proto to protoc for generating js stubs.

THIRD_PARTY_GOOGLE_API_PROTO_FILES=$(shell find third_party/google/api -name *.proto)