Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

protoc-gen-ts: program not found or is not executable #936

Closed
furstenheim-goodnotes opened this issue Oct 3, 2023 · 1 comment
Closed

Comments

@furstenheim-goodnotes
Copy link

Hi,
I'm trying to use this library as in:

protoc --plugin=protoc-gen-ts_proto=./node_modules/.bin/protoc-gen-ts_proto --ts_out=out *.proto

It fails with:

protoc-gen-ts: program not found or is not executable

If I do

protoc --plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts_proto --ts_out=out *.proto

Then it works, but I have this issue #305 when adding a flag.

@stephenh
Copy link
Owner

stephenh commented Oct 3, 2023

protoc --plugin=protoc-gen-ts_proto=./node_modules/.bin/protoc-gen-ts_proto --ts_out=out *.proto

I believe the issue is that you are using --ts_out=out instead of --ts_proto_out=out.

@stephenh stephenh closed this as completed Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants