Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pbjs unable to find google.protobuf.Empty #1061

Open
gudmundur opened this issue Jun 4, 2018 · 1 comment
Open

pbjs unable to find google.protobuf.Empty #1061

gudmundur opened this issue Jun 4, 2018 · 1 comment

Comments

@gudmundur
Copy link

protobuf.js version: 6.8.6

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)
@Jmoore1127
Copy link

This seems related to #1042

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants