You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While trying to generate code with pbjs it is unable to find the common google.protobuf.Empty proto. The .proto file contains a import "google/protobuf/empty.proto";. Running pbjs with pbjs --wrap es6 -t static-module path_to_proto.proto causes it to terminate with:
node_modules/protobufjs/cli/pbjs.js:235
throw err;
^
Error: no such type: google.protobuf.Empty
at Service.lookupType (node_modules/protobufjs/src/namespace.js:382:15)
at Method.resolve (node_modules/protobufjs/src/method.js:147:44)
at Service.resolveAll (node_modules/protobufjs/src/service.js:111:20)
at Namespace.resolveAll (node_modules/protobufjs/src/namespace.js:307:25)
at Namespace.resolveAll (node_modules/protobufjs/src/namespace.js:307:25)
at Namespace.resolveAll (node_modules/protobufjs/src/namespace.js:307:25)
at Namespace.resolveAll (node_modules/protobufjs/src/namespace.js:307:25)
at Root.resolveAll (node_modules/protobufjs/src/namespace.js:307:25)
at Root.resolveAll (node_modules/protobufjs/src/root.js:246:43)
at Object.main (node_modules/protobufjs/cli/pbjs.js:226:48)
The text was updated successfully, but these errors were encountered:
protobuf.js version: 6.8.6
While trying to generate code with
pbjs
it is unable to find the commongoogle.protobuf.Empty
proto. The.proto
file contains aimport "google/protobuf/empty.proto";
. Runningpbjs
withpbjs --wrap es6 -t static-module path_to_proto.proto
causes it to terminate with:The text was updated successfully, but these errors were encountered: