Repository navigation
Module instancing problem with storage+bigquery.import #1516
Copy link
Copy link
Closed
Labels
api: bigqueryIssues related to the BigQuery API.Issues related to the BigQuery API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Activity
- addedapi: bigqueryIssues related to the BigQuery API.Issues related to the BigQuery API.
on Aug 22, 2016 :\ Sorry about that. This is because of the way we type check for custom types. We have an issue that is suggesting a better way to do that, which would fix this at the same time. I'm going to assign that one to myself and start on it tomorrow so that hopefully we can release a fix shortly.
Closing only because #1467 will track the fix.
- addedtype: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
on Aug 22, 2016 Excellent, thanks Stephen! For now I'm just using the entire google-cloud package so things are still working 👍
Phew 😌 Thanks for being patient with the bumps from the modularization releases!
Hi there. I'm running into the same issue. Is that no fixed?
@erdillon can you open a new issue, including steps to reproduce and environment information?
- added a commit that references this issue
on Jul 23, 2025 - added a commit that references this issue
on Feb 3, 2026
Metadata
Metadata
Assignees
Labels
api: bigqueryIssues related to the BigQuery API.Issues related to the BigQuery API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Hi,
I am trying to switch to the new method of requiring only the modules that I need instead of the entire google-cloud module. I'm running into a problem importing files from cloud storage into bigquery. This was working until I switched to requiring separate modules.
The import call fails with:
Adding a debug prop to
require('@google-cloud/storage'), it looks like my app and the bigquery modules have two different instances of the storage module, causing instanceof to report the files passed as being the wrong type.Environment details
This seems like a bug, but I could be missing something. Any help would be appreciated, thanks!