Hi, thanks for the package. I'm trying to use bpts cli for generate a TypeScript definitions file, and get an error. I'm using protobuf.js version: v6.2.1 cli.
This is my protobuf file.
pbjs -t static-module -o test.js sample.proto
It looks done, and generated a test.js file.
Then run the following command:
I got an error:
/**
* Verifies a Request.
* @param {Request|Object} message Request or plain object to verify
* @returns {?string} `null` if valid, otherwise the reason why it is not
*/
static verify: /usr/local/lib/node_modules/protobufjs/cli/pbts.js:83
throw err;
^
Error: code 1
at Error (native)
at ChildProcess.<anonymous> (/usr/local/lib/node_modules/protobufjs/cli/pbts.js:79:23)
at emitTwo (events.js:111:20)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Socket.<anonymous> (internal/child_process.js:334:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:498:12)
Can you give me some advice? Thanks a lot.
Hi, thanks for the package. I'm trying to use bpts cli for generate a TypeScript definitions file, and get an error. I'm using protobuf.js version: v6.2.1 cli.
This is my protobuf file.
It looks done, and generated a test.js file.
Then run the following command:
I got an error:
Can you give me some advice? Thanks a lot.