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

Can't run compile-proto.sh #34

Open
MertIV opened this issue Nov 22, 2021 · 3 comments
Open

Can't run compile-proto.sh #34

MertIV opened this issue Nov 22, 2021 · 3 comments

Comments

@MertIV
Copy link

MertIV commented Nov 22, 2021

Hello, thanks for the effort you've been giving to this project. Its been really helpful for me.

But I couldn't generate proto files from the script you've written in windows even though bash is installed. Can you help me with that?

@MertIV
Copy link
Author

MertIV commented Nov 24, 2021

Hi the current error I'm getting is

PS C:\Users\mrtkr\Documents\GitHub\grpc-js-typescript\examples\ts-protoc-gen> node_modules/.bin/grpc_tools_node_protoc -I="./" --plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts --plugin=protoc-gen-grpc=./node_modules/.bin/protoc-gen-grpc --js_out=import_style=commonjs:. --grpc_out=grpc_js:. --ts_out=grpc_js:. ./proto/example.proto
C:\Users\mrtkr\Documents\GitHub\grpc-js-typescript\examples\ts-protoc-gen\node_modules\grpc-tools\bin\protoc.js:41
throw error;
^

Error: Command failed: C:\Users\mrtkr\Documents\GitHub\grpc-js-typescript\examples\ts-protoc-gen\node_modules\grpc-tools\bin\protoc.exe --plugin=protoc-gen-grpc=C:\Users\mrtkr\Documents\GitHub\grpc-js-typescript\examples\ts-protoc-gen\node_modules\grpc-tools\bin\grpc_node_plugin.exe -I=./ --plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts --plugin=protoc-gen-grpc=./node_modules/.bin/protoc-gen-grpc --js_out=import_style=commonjs:. --grpc_out=grpc_js:. --ts_out=grpc_js:. ./proto/example.proto

at ChildProcess.exithandler (child_process.js:383:12)
at ChildProcess.emit (events.js:400:28)
at maybeClose (internal/child_process.js:1058:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:293:5) {

killed: false,
code: 3221225477,
signal: null,
cmd: 'C:\Users\mrtkr\Documents\GitHub\grpc-js-typescript\examples\ts-protoc-gen\node_modules\grpc-tools\bin\protoc.exe --plugin=protoc-gen-grpc=C:\Users\mrtkr\Documents\GitHub\grpc-js-typescript\examples\ts-protoc-gen\node_modules\grpc-tools\bin\grpc_node_plugin.exe -I=./ --plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts --plugin=protoc-gen-grpc=./node_modules/.bin/protoc-gen-grpc --js_out=import_style=commonjs:. --grpc_out=grpc_js:. --ts_out=grpc_js:. ./proto/example.proto'
}

Like this I've tried to modify the script but I couldn't run it successfully

@badsyntax
Copy link
Owner

badsyntax commented Nov 24, 2021

Apologies for the belated response. I'll add some windows scripts to help with this when i get some time, in the meantime have you tried using the grpc-proto-loader as it does not use the proto compiler.

@MertIV
Copy link
Author

MertIV commented Nov 24, 2021 via email

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