Skip to content

util.safeProp is not a function #956

@viktorhunko

Description

@viktorhunko

protobuf.js version: 6.8.1

I'm using proto-webpack-plugin with protobuf.js and after recent updates this error occurs: util.safeProp is not a function

proto-webpack-plugin run pbjs like:

pbjs.main(['-t', 'json-module', '-w', 'commonjs', '-o', options.outputFile].concat(files), function(err, output) {
    if (err) { throw err; }
  });
TypeError: util.safeProp is not a function
    at json_module (/node_modules/proto-webpack-plugin/node_modules/protobufjs/cli/targets/json-module.js:12:29)
    at callTarget (/node_modules/proto-webpack-plugin/node_modules/protobufjs/cli/pbjs.js:296:9)
    at Object.main (/node_modules/proto-webpack-plugin/node_modules/protobufjs/cli/pbjs.js:229:13)
    at new ProtoWebpackPlugin (/node_modules/proto-webpack-plugin/index.js:7:8)
    at Object.<anonymous> (/build/webpack.base.conf.js:77:5)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)

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