Skip to content

Can't get it working #13

@Daniel15

Description

@Daniel15

I'm trying to see if this project will generate TypeScript definitions for my Protobuf types (sounds like it will). However, I can't seem to get it working. I tried a command similar to the one in the readme, which gave me:

c:\apps\protobuf\bin\protoc --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=./src/generated --proto_path=../../Proto ../../Proto/dnstools.proto

--ts_proto_out: protoc-gen-ts_proto: %1 is not a valid Win32 application.

After reading protocolbuffers/protobuf#3923, I tried protoc-gen-ts_proto.cmd as the plugin path, which gave me a different error:

c:\apps\protobuf\bin\protoc --plugin=./node_modules/.bin/protoc-gen-ts_proto.cmd --ts_proto_out=./src/generated --proto_path=../../Proto ../../Proto/dnstools.proto
'protoc-gen-ts_proto' is not recognized as an internal or external command,
operable program or batch file.
--ts_proto_out: protoc-gen-ts_proto: Plugin failed with status code 1.

Any ideas?

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