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

Get an error at run bpts cli? #572

Closed
kiruto opened this Issue Dec 18, 2016 · 0 comments

Comments

Projects
None yet
2 participants
@kiruto

kiruto commented Dec 18, 2016

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.

@dcodeIO dcodeIO closed this in 3ad8108 Dec 18, 2016

@dcodeIO dcodeIO added the bug label Dec 18, 2016

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