I've been doing the examples to export a Bigquery table to cloud Storage link , with gcloud , python , it worked, it worked, but Node Js does not work for me, I get the following error:
> node test.js
/home/nodejs/test.js.js:26
.extract(storage.bucket(bucketName).file(filename))
^
TypeError: bigquery.dataset(...).table(...).extract is not a function
at extractTableToGCS (/home/nodejs/test.js.js:26:6)
at Object.<anonymous> (/home/nodejs/test.js.js:50:1)
at Module._compile (module.js:624:30)
at Object.Module._extensions..js (module.js:635:10)
at Module.load (module.js:545:32)
at tryModuleLoad (module.js:508:12)
at Function.Module._load (module.js:500:3)
at Function.Module.runMain (module.js:665:10)
at startup (bootstrap_node.js:201:16)
at bootstrap_node.js:626:3
It's very easy to just replace the variables, but it did not work for me, I appreciate an answer.