Skip to content

Get an error at run bpts cli? #572

Closed

Description

@kiruto

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:

pbts test.js

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions