Skip to content

proto with domain compile err #526

Open
@izouxv

Description

@izouxv

tool: protoc-gen-grpc-web-1.0.4-darwin-x86_64

proto:

syntax = "proto3";
package rpcweb;

message Hello { string test = 1; }
message HelloResp {string back = 1;}
message Domain {
message Hello2 { string test = 1; }
message Hello2Resp {string back = 1;}
}
service TestSerX {
rpc Test(Hello) returns (HelloResp) {}
rpc TestErr(Domain.Hello2) returns (Domain.Hello2Resp) {}
}

cmd:

DIR=.
OUT_DIR=.
protoc -I=$DIR *.proto --js_out=import_style=commonjs:$OUT_DIR --grpc-web_out=import_style=typescript,mode=grpcweb:$OUT_DIR

TestServiceClientPb.ts file compile err
err data:

import {
Hello2,
Hello2Resp,
Hello,
HelloResp} from './test_pb';

it should be

import {
Domain,
Hello,
HelloResp} from './test_pb';

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions