googleapis / googleapis/google-cloud-node
`@google-cloud/storage` Fails to Import on Node.js 26.x
- Lingua principale
- TypeScript
- Stelle
- 3.2k
- Fork
- 712
- Merge medio
- 2g 9h
- PR unite (30g)
- 104
Descrizione
### Please make sure you have searched for information in the following guides.
- [x] Search the issues already opened: https://github.com/GoogleCloudPlatform/google-cloud-node/issues
- [x] Search StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform+node.js
- [x] Check our Troubleshooting guide: https://github.com/googleapis/google-cloud-node/blob/main/docs/troubleshooting.md
- [x] Check our FAQ: https://github.com/googleapis/google-cloud-node/blob/main/docs/faq.md
- [x] Check our libraries HOW-TO: https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md
- [x] Check out our authentication guide: https://github.com/googleapis/google-auth-library-nodejs
- [x] Check out handwritten samples for many of our APIs: https://github.com/GoogleCloudPlatform/nodejs-docs-samples
### 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.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con la riproduzione collegata di nodejs-storage e con l’import TypeScript di @google-cloud/storage. Confronta l’import in Node.js 24.x e 25.x/26.x, quindi traccia il punto in cui si verifica l’errore di prototipo undefined durante il caricamento del pacchetto. Il lavoro è completato quando l’import ha esito positivo nelle versioni interessate di Node.js e un test di regressione copre il fallimento.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- google-cloud, nodejs, typescript
- Ambito
- api, backend, cloud
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Attiva
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 52/100