Skip to content

--ts_proto_out: protoc-gen-ts_proto: The system cannot find the file specified. #93

@dmitrijs-pavlovs-dev

Description

@dmitrijs-pavlovs-dev

Hello i am having troubles running my script on windows.
This is the script:

SRC_DIR="./libs/proto-schema/src/proto/*.proto"
DEST_DIR="./libs/proto-schema/src/"

# node_modules/ts-proto/protoc-gen-ts_proto.cmd
protoc --plugin=protoc-gen-ts_proto=.\node_modules\.bin\protoc-gen-ts_proto.cmd --ts_proto_opt=outputEncodeMethods=true,useEnumNames=false,asClass=false,outputJsonMethods=true,context=true,outputNestJs=true,outputClientImpl=false --ts_proto_out=${DEST_DIR} ${SRC_DIR}

Relevant issues:
improbable-eng/ts-protoc-gen#15
#13

I tried changing the path to --plugin=protoc-gen-ts_proto=.\node_modules.bin\protoc-gen-ts_proto.cmd and also with %CD%

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions