-
Notifications
You must be signed in to change notification settings - Fork 172
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
Does ts-protoc-gen support windows? #15
Comments
@YPhyu add |
Thanks. It works fine now. |
running on windows 7 still not successful: Is the installation on windows supposed to create a separate launcher? |
@bonnyr the plugin (protoc-gen-ts.cmd not ts-protoc-gen.cmd) is under node_modules\.bin |
here's my copy of the bin directory (inside the current project): λ dir ......\node_modules\ts-protoc-gen\bin Directory of <project_path>\node_modules\ts-protoc-gen\bin 10/06/2017 01:07 AM .10/06/2017 01:07 AM .. 10/05/2017 03:04 PM 57 protoc-gen-js_service 10/05/2017 03:04 PM 49 protoc-gen-ts 2 File(s) 106 bytes 2 Dir(s) 45,089,464,320 bytes free Am I missing something here? |
You should look for the plugin at node_modules\.bin rather than Directory of <project_path>\node_modules\ts-protoc-gen\bin |
My bad - thanks for this. It's working now |
Hi, I am trying to run ts-protoc-gen from PowerShell. I type the following command
And receive the following error generated/: No such file or directory.
Does anyone tried to execute command from powershell. Maybe I'm doing something wrong? |
@unsafePtr
or absolute path:
|
PROJECT_BIN="./node_modules/.bin" PROTOC_GEN_TS_PATH=".\node_modules\.bin\protoc-gen-ts.cmd" $PROTOC -I=$PROTO_DIR wechat.proto I used D:\Projects\Test\helloworld\node_modules.bin\protoc-gen-ts.cmd I used .\node_modules.bin\protoc-gen-ts.cmd I am so so... build it for one night~~~~ |
PROTOC_GEN_TS_PATH="%CD%/node_modules/.bin/protoc-gen-ts.cmd" Tao@Tao MINGW64 /d/Projects/Test/helloworld PROTOC_GEN_TS_PATH="%CD%\node_modules\ts-protoc-gen\bin\protoc-gen-ts.cmd" Tao@Tao MINGW64 /d/Projects/Test/helloworld I was falling apart. I wasn't getting any sleep. |
Tao@Tao MINGW64 /d/Projects/Test/helloworld Tao@Tao MINGW64 /d/Projects/Test/helloworld 3 files were created by build.sh But I modified it for @improbable-eng/grpc-web and protoc-gen-ts, It can't work |
the code above work well |
#the code above work well |
I'm working in nest js on the microservices architecture (grpc) and want to generate ts file from my proto file but when I run the following command on cmd:
I get the following error:
Kindly help me out. |
I think you need to run the command as: Or you could create a shortcut to |
Getting this - 'protoc-gen-ts_proto' is not recognized as an internal or external command, |
try to run it like this:
|
I am trying out grpc-web and grpc-proxy. I am getting error when I try to compile proto to ts.
Error: ts_out: protoc-gen-ts: 1% is not a valid Win32 application.
Thank you for your help in advance.
The text was updated successfully, but these errors were encountered: