Skip to content

@google-cloud/storage Fails to Import on Node.js 25.x #2662

@guyellis

Description

@guyellis

Please make sure you have searched for information in the following guides.

A screenshot that you have tested with "Try this API".

In a TypeScript file, using:

import { Storage } from '@google-cloud/storage';

will generate the following error with Node.js 25.0.0:

TypeError: Cannot read properties of undefined (reading 'prototype')

Functions correctly in Node.js 24.x

Link to the code that reproduces this issue. A link to a public Github Repository or gist with a minimal reproduction.

https://github.com/googleapis/nodejs-storage

A step-by-step description of how to reproduce the issue, based on the linked reproduction.

See description.

A clear and concise description of what the bug is, and what you expected to happen.

TypeError: Cannot read properties of undefined (reading 'prototype')

A clear and concise description WHY you expect this behavior, i.e., was it a recent change, there is documentation that points to this behavior, etc. **

Node.js 25.x upgrade.

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: storageIssues related to the googleapis/nodejs-storage API.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions