Skip to content

Become error, where work fine before, in locked package.json #1413

@VitalyName

Description

@VitalyName

protobuf.js version: 6.8.8
nodejs version: 6.11.0

I have the problem now, but i don't have problem 1 year before. This is strange, because dependency version is locked, npm-shrinkwrap.json is used

After run command

pbjs -t static-module -w commonjs -o ../../../target/classes/myproto.js ../proto/*.proto; pbts -o ../../../target/classes/myproto.d.ts ../../../target/classes/myproto.js

I can see this error:

node_modules/protobufjs/cli/node_modules/mkdirp/lib/opts-arg.js:7
    opts = { mode: 0o777, fs, ...opts }
                              ^^^
SyntaxError: Unexpected token ...

Probably "...opts" is syntax, which nodejs6.11.0 doesn't support. But why it works before?
What can I do for fix it in my project, without update nodejs version?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions