chore: fix generator by pinning auth dep, updating samples TS version - #3941
Merged
Conversation
shivanee-p
approved these changes
Jul 24, 2026
pearigee
enabled auto-merge (squash)
July 24, 2026 22:21
During tsc execution in samples/typescript: * samples/package.json had specified an outdated TypeScript version (^4.6.4). * tsc resolved @types/node from the root project's node_modules (version 22.15.3). * TypeScript 4.6 is incompatible with Node 22 type declarations in @types/node/web-globals/streams.d.ts, leading to compile error: error TS2502: 'CompressionStream' is referenced directly or indirectly in its own type annotation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issues addressed
Auth library conflict
npm installtriggerednpm run prepare(tsc), which failed with 9 TypeScript compilation errors due to duplicate module resolutions ofgoogle-auth-library. Top-levelpackage.jsonresolvedv10.9.1whilegoogleapis-commonpinnedv10.5.0, causing npm to create a nested copy and TypeScript to flag incompatible class type instances.Pinning
google-auth-libraryto10.5.0aligns root requirements withgoogleapis-common, allowing npm to deduplicate the package into top-levelnode_modulesand resolving all build errors.Samples type breakage due to outdated TS depedency
During tsc execution in samples/typescript:
error TS2502: 'CompressionStream' is referenced directly or indirectly in its own type annotation.