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)
The generated code for
discovery.proto
-discovery_pb.js
contains reference togoogle_api_annotations_pb
which is not defined. The ttn module (https://github.com/TheThingsNetwork/node-app-sdk) is usingttnapi
and hence application fails to startup.