Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.
This repository was archived by the owner on Feb 7, 2026. It is now read-only.

TypeError in production version using query params #269

@jchive

Description

@jchive

Thanks for stopping by to let us know something could be better!

Environment details

  • OS: Windows
  • Node.js version: 10.13.0
  • npm version: 6.4.1
  • @google-cloud/bigquery version: 2.0.1

Steps to reproduce

const dataset = BigQueryInstance.dataset("dataset");
await dataset.query({ query: "SELECT ... WHERE id =?", params: [ id ] });

Resultant error when attempting to execute

Error 
TypeError: Right-hand side of 'instanceof' is not an object
    at Function.getType_ (...\node_modules\@google-cloud\bigquery\build\src\index.js:462:1)

The production version, received from npm install, on the function "static getType_(value) {" has been compiled to

462:        else if (value instanceof big_js_1.default) {

this is "undefined"

and quite different to the

616:    } else if (value instanceof Big) {

of the source code.

The Big object is defined in the big_js_1 object, I am unsure why the compiler has done this?

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.api: bigqueryIssues related to the googleapis/nodejs-bigquery API.triage meI really want to be triaged.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions