Skip to content

Error on new gax.lro() #456

@kolodny

Description

@kolodny
 ~ $ mkdir /tmp/gax2
 ~ cd /tmp/gax2 $
 /tmp/gax2 $ npm init -y >/dev/null && npm i google-gax

> grpc@1.12.3 install /private/tmp/gax2/node_modules/grpc
> node-pre-gyp install --fallback-to-build --library=static_library

[grpc] Success: "/private/tmp/gax2/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown/grpc_node.node" is installed via remote

> protobufjs@6.8.6 postinstall /private/tmp/gax2/node_modules/protobufjs
> node scripts/postinstall

npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN gax2@1.0.0 No description
npm WARN gax2@1.0.0 No repository field.

+ google-gax@0.17.0
added 312 packages in 15.08s
 /tmp/gax2  node -e 'const gax = require(`google-gax`); new gax.lro()'
/private/tmp/gax2/node_modules/google-gax/build/src/index.js:71
    var gaxGrpc = grpc(options);
                  ^

TypeError: grpc is not a function
    at new lro (/private/tmp/gax2/node_modules/google-gax/build/src/index.js:71:19)
    at [eval]:1:36
    at Script.runInThisContext (vm.js:91:20)
    at Object.runInThisContext (vm.js:298:38)
    at Object.<anonymous> ([eval]-wrapper:6:22)
    at Module._compile (internal/modules/cjs/loader.js:678:30)
    at evalScript (internal/bootstrap/node.js:542:27)
    at startup (internal/bootstrap/node.js:204:9)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:575:3)
 ✘ /tmp/gax2 $

Metadata

Metadata

Labels

🚨This issue needs some love.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions