Hi All
I'm using proto3 with the last beta 3 (v3.0.0-beta-3) to generate javascript DTOS as CommonJs modules.
In the generated javascript, built in proto type (e.g. google.protobuf.Timestamp) are 'required' but don't exist.
For example, given this proto:
// foo.proto
syntax = "proto3";
import "google/protobuf/timestamp.proto";
message SomeMessage {
google.protobuf.Timestamp someTime = 1;
}
And this command:
protoc --proto_path=./ --js_out=import_style=commonjs:./ foo.proto
we get this output:
/**
* @fileoverview
* @enhanceable
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
var jspb = require('google-protobuf');
var goog = jspb;
var global = Function('return this')();
var google_protobuf_timestamp_pb = require('./google/protobuf/timestamp_pb.js'); // NOTE ./google/protobuf/timestamp_pb.js doesn't exist
goog.exportSymbol('proto.SomeMessage', null, global);
The file timestamp_pb.js isn't generated (note timestamp.proto does exist under my protoc executable).
I'd expect it to exist in either:
I don't see anything in
the repo to support the first option, and not sure about the second.
Any ideas?
Any help much appreciated.