googleapis / google-auth-library-nodejs

🔑 Google Auth Library for Node.js
Apache License 2.0
1.71k stars 374 forks source link

Client args type error for GCP #1781

Closed yugo-ibuki closed 6 months ago

yugo-ibuki commented 6 months ago

tried to update 9.6.3 -> 9.7.0. We've got the error that says TS2322: Type Impersonated is not assignable to type JSONClient | undefined.

On v9.6.3, nothing happens.

スクリーンショット 2024-03-27 15 48 50

On v9.7.0, type error occurs.

スクリーンショット 2024-03-27 15 49 13

Is there anything we should do?

danielbankhead commented 6 months ago

Hmmm, do you mind providing the output of npm ls google-auth-library?

yugo-ibuki commented 6 months ago

@danielbankhead Thank you for your replying. Here is the result of npm ls google-auth-library

スクリーンショット 2024-03-28 9 53 33

Our project is structured as Monorepo

danielbankhead commented 6 months ago

That’s strange; the lower deps were not updated. Do you mind running rm -rf node_modules package-lock.json && npm i in the package’s root directory? Let me know if that resolves it.

yugo-ibuki commented 6 months ago

That works! Thank you!