ts-protoc-gen: Import proto from go src generates wrong imports
Problem
When writing Go protobufs, importing proto from go src generates wrong imports
Steps to reproduce
import "git.company.com/project/repo/proto/file.proto";
generates the following CommonJS import
var git_company_com_project_repo_proto_file_pb = require('./git.company.com/project/repo/proto/file_pb.js');
which can’t be imported. I noticed non of the examples have imports too
Expected
Generate correct imports
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 20 (6 by maintainers)
auth.proto
:protoc
andts-protoc-gen
plugin:../google/api/annotations_pb
:The issue is that the
../google/api/annotations_pb
package does not exist, and is not a dependency that the js or ts files should import. It is only imported in the.proto
spec forgrpc-gateway
support.