Open mhgamework opened 7 years ago
protobuf.js version: 6.8.0
Same for me, but locally.
hostname# ./node_modules/.bin/pbjs -t static-module -w commonjs base.proto | ./node_modules/.bin/pbts -
import * as $protobuf from "protobufjs";
There are no input files to process.
I have the same problem but with pbts and same arguments.
Handling of the -
parameter is performed here. Apparently it uses a temporary file name of -
there, which is bad. Should be an easy fix, though, if that's the cause.
Sorry it's not exactly the same parameter. To be precise, I have the problem on this command :
pbts -t static-module -w commonjs -o userhistory.js history.proto
edit: Same thing without arguments
Still an issue in 2023
Wow indeed it is still an issue
I don't know why, but this seems to work for generating ts types
./node_modules/.bin/pbjs -t static-module somefile.proto | ./node_modules/.bin/pbts -o somefile.d.ts -
protobuf.js version: 6.7.0
I am running "pbjs -t static-module -w commonjs xxx.proto | pbts -o xxx.d.ts -" When i run this command locally it works, when i run it on visual studio team services, the .d.ts file produces the following output:
I have absolutely no clue why this is happening and this makes this protobuf.js unusable for me. Does anyone have any pointers as to what might be happening