Open
Description
We are noticing the following error when trying to run tsc
on our code-base. It seems to be working fine in previous versions. We use Renovate to update our dependencies and during a regular lock file maintenance run this arises (this is basically an npm update
call).
Our dependencies on @google
:
"@google-cloud/bigquery": "^8.0.0",
"@google-cloud/pubsub": "^5.0.0",
"@google-cloud/storage": "^7.0.0",
When updating google-auth-library
(npm update google-auth-library
) the error arises. I think these are relevant in package-lock.json
:
"node_modules/google-auth-library": {
- "version": "10.0.0-rc.2",
- "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-10.0.0-rc.2.tgz",
- "integrity": "sha512-LjkDUtHV8mFFV0pDWpPTjUuAPd6WDBs2y/mTzGSmwQJkDRinOpQyu7e/0pqQoDoanKGwaQJH5729uZ+/5Uz8fw==",
+ "version": "10.1.0",
+ "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-10.1.0.tgz",
+ "integrity": "sha512-GspVjZj1RbyRWpQ9FbAXMKjFGzZwDKnUHi66JJ+tcjcu5/xYAP1pdlWotCuIkMwjfVsxxDvsGZXGLzRt72D0sQ==",
"node_modules/google-auth-library/node_modules/gaxios": {
- "version": "7.0.0-rc.5",
- "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-7.0.0-rc.5.tgz",
- "integrity": "sha512-s9rlpplwdb/KCq2DYevVTM/MpozeVZuR3pkzDGXtRhY7wD4fXftIYXUAerX07ZPB3J8/dHUJsX7fPnN2O4Psuw==",
+ "version": "7.1.0",
+ "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-7.1.0.tgz",
+ "integrity": "sha512-y1Q0MX1Ba6eg67Zz92kW0MHHhdtWksYckQy1KJsI6P4UlDQ8cvdvpLEPslD/k7vFkdPppMESFGTvk7XpSiKj8g==",
"node_modules/gtoken/node_modules/gaxios": {
- "version": "7.0.0-rc.5",
- "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-7.0.0-rc.5.tgz",
- "integrity": "sha512-s9rlpplwdb/KCq2DYevVTM/MpozeVZuR3pkzDGXtRhY7wD4fXftIYXUAerX07ZPB3J8/dHUJsX7fPnN2O4Psuw==",
+ "version": "7.1.0",
+ "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-7.1.0.tgz",
+ "integrity": "sha512-y1Q0MX1Ba6eg67Zz92kW0MHHhdtWksYckQy1KJsI6P4UlDQ8cvdvpLEPslD/k7vFkdPppMESFGTvk7XpSiKj8g==",
Command & error:
npx tsc --noEmit --project tsconfig.json
node_modules/google-auth-library/build/src/auth/authclient.d.ts:14:34 - error TS2339: Property 'fetch' does not exist on type 'Gaxios'.
14 fetch: typeof fetch | Gaxios['fetch'];
~~~~~~~
node_modules/google-auth-library/build/src/auth/authclient.d.ts:214:41 - error TS2339: Property 'fetch' does not exist on type 'Gaxios'.
214 fetch<T>(...args: Parameters<Gaxios['fetch']>): GaxiosPromise<T>;
TSConfig:
{
"compilerOptions": {
"incremental": true,
"module": "commonjs",
"esModuleInterop": true,
"target": "es6",
"noImplicitAny": true,
"moduleResolution": "node",
"sourceMap": true,
"outDir": "dist",
"baseUrl": ".",
"paths": {
"*": [
"node_modules/*"
]
}
},
"include": [
"src/**/*"
]
}
Node version: v20.16.0
NPM version: 10.8.1
Installed dependencies after the update:
➜ npm list google-auth-library gaxios
├─┬ @google-cloud/[email protected]
│ └─┬ @google-cloud/[email protected]
│ └── [email protected] deduped
├─┬ @google-cloud/[email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ └─┬ [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│ └── [email protected] deduped
├─┬ @google-cloud/[email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ ├── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ └─┬ [email protected]
│ └── [email protected] deduped
├─┬ @oceansync/[email protected]
│ ├─┬ @google-cloud/[email protected]
│ │ └─┬ @google-cloud/[email protected]
│ │ └── [email protected] deduped
│ └─┬ @google-cloud/[email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected] deduped
│ │ └─┬ [email protected]
│ │ └── [email protected] deduped
│ └─┬ [email protected]
│ └── [email protected] deduped
└─┬ @oceansync/[email protected]
└─┬ @google-cloud/[email protected]
├─┬ @google-cloud/[email protected]
│ ├─┬ @google-cloud/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ ├── [email protected] deduped
│ │ └─┬ [email protected]
│ │ └── [email protected] deduped
│ └─┬ [email protected]
│ └── [email protected] deduped
└─┬ [email protected]
├── [email protected] deduped
└─┬ [email protected]
└── [email protected] deduped