TheThingsArchive / api

Generated code for accessing The Things Network v2 API
MIT License
12 stars 8 forks source link

google_api_annotations_pb not defined in generated code for discovery_pb.js #36

Closed Arun-KumarH closed 4 years ago

Arun-KumarH commented 4 years ago

The generated code for discovery.proto - discovery_pb.js contains reference to google_api_annotations_pb which is not defined. The ttn module (https://github.com/TheThingsNetwork/node-app-sdk) is using ttnapi and hence application fails to startup.

/home/app/node_modules/ttnapi/discovery/discovery_pb.js:18
goog.object.extend(proto, google_api_annotations_pb);
                          ^

ReferenceError: google_api_annotations_pb is not defined
    at Object.<anonymous> (/home/app/node_modules/ttnapi/discovery/discovery_pb.js:18:27)
    at Module._compile (internal/modules/cjs/loader.js:1158:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
    at Module.load (internal/modules/cjs/loader.js:1002:32)
    at Function.Module._load (internal/modules/cjs/loader.js:901:14)
    at Module.require (internal/modules/cjs/loader.js:1044:19)
    at require (internal/modules/cjs/helpers.js:77:18)
    at Object.<anonymous> (/home/app/node_modules/ttn/dist/discovery/discovery.js:34:21)