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/bigquery@8.1.0
│ └─┬ @google-cloud/common@6.0.0
│ └── google-auth-library@10.1.0 deduped
├─┬ @google-cloud/pubsub@5.0.0
│ ├─┬ google-auth-library@10.1.0
│ │ ├── gaxios@7.1.0
│ │ ├─┬ gcp-metadata@7.0.0
│ │ │ └── gaxios@7.1.0 deduped
│ │ └─┬ gtoken@8.0.0
│ │ └── gaxios@7.1.0
│ └─┬ google-gax@5.0.1-rc.1
│ └── google-auth-library@10.1.0 deduped
├─┬ @google-cloud/storage@7.16.0
│ ├── gaxios@6.7.1
│ └─┬ google-auth-library@9.15.1
│ ├── gaxios@6.7.1 deduped
│ ├─┬ gcp-metadata@6.1.1
│ │ └── gaxios@6.7.1 deduped
│ └─┬ gtoken@7.1.0
│ └── gaxios@6.7.1 deduped
├─┬ @oceansync/storage@4.3.1
│ ├─┬ @google-cloud/bigquery@7.9.4
│ │ └─┬ @google-cloud/common@5.0.2
│ │ └── google-auth-library@9.15.1 deduped
│ └─┬ @google-cloud/pubsub@4.11.0
│ ├─┬ google-auth-library@9.15.1
│ │ ├── gaxios@6.7.1 deduped
│ │ └─┬ gtoken@7.1.0
│ │ └── gaxios@6.7.1 deduped
│ └─┬ google-gax@4.6.1
│ └── google-auth-library@9.15.1 deduped
└─┬ @oceansync/typescript-logger@7.0.3
└─┬ @google-cloud/logging-winston@6.0.1
├─┬ @google-cloud/logging@11.2.0
│ ├─┬ @google-cloud/common@5.0.2
│ │ └── google-auth-library@9.15.1 deduped
│ ├─┬ google-auth-library@9.15.1
│ │ ├── gaxios@6.7.1 deduped
│ │ └─┬ gtoken@7.1.0
│ │ └── gaxios@6.7.1 deduped
│ └─┬ google-gax@4.6.1
│ └── google-auth-library@9.15.1 deduped
└─┬ google-auth-library@9.15.1
├── gaxios@6.7.1 deduped
└─┬ gtoken@7.1.0
└── gaxios@6.7.1 deduped
We are noticing the following error when trying to run
tscon 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 annpm updatecall).Our dependencies on
@google:When updating
google-auth-library(npm update google-auth-library) the error arises. I think these are relevant inpackage-lock.json:Command & error:
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.0NPM version:
10.8.1Installed dependencies after the update:
➜ npm list google-auth-library gaxios ├─┬ @google-cloud/bigquery@8.1.0 │ └─┬ @google-cloud/common@6.0.0 │ └── google-auth-library@10.1.0 deduped ├─┬ @google-cloud/pubsub@5.0.0 │ ├─┬ google-auth-library@10.1.0 │ │ ├── gaxios@7.1.0 │ │ ├─┬ gcp-metadata@7.0.0 │ │ │ └── gaxios@7.1.0 deduped │ │ └─┬ gtoken@8.0.0 │ │ └── gaxios@7.1.0 │ └─┬ google-gax@5.0.1-rc.1 │ └── google-auth-library@10.1.0 deduped ├─┬ @google-cloud/storage@7.16.0 │ ├── gaxios@6.7.1 │ └─┬ google-auth-library@9.15.1 │ ├── gaxios@6.7.1 deduped │ ├─┬ gcp-metadata@6.1.1 │ │ └── gaxios@6.7.1 deduped │ └─┬ gtoken@7.1.0 │ └── gaxios@6.7.1 deduped ├─┬ @oceansync/storage@4.3.1 │ ├─┬ @google-cloud/bigquery@7.9.4 │ │ └─┬ @google-cloud/common@5.0.2 │ │ └── google-auth-library@9.15.1 deduped │ └─┬ @google-cloud/pubsub@4.11.0 │ ├─┬ google-auth-library@9.15.1 │ │ ├── gaxios@6.7.1 deduped │ │ └─┬ gtoken@7.1.0 │ │ └── gaxios@6.7.1 deduped │ └─┬ google-gax@4.6.1 │ └── google-auth-library@9.15.1 deduped └─┬ @oceansync/typescript-logger@7.0.3 └─┬ @google-cloud/logging-winston@6.0.1 ├─┬ @google-cloud/logging@11.2.0 │ ├─┬ @google-cloud/common@5.0.2 │ │ └── google-auth-library@9.15.1 deduped │ ├─┬ google-auth-library@9.15.1 │ │ ├── gaxios@6.7.1 deduped │ │ └─┬ gtoken@7.1.0 │ │ └── gaxios@6.7.1 deduped │ └─┬ google-gax@4.6.1 │ └── google-auth-library@9.15.1 deduped └─┬ google-auth-library@9.15.1 ├── gaxios@6.7.1 deduped └─┬ gtoken@7.1.0 └── gaxios@6.7.1 deduped