Skip to content
This repository was archived by the owner on Mar 11, 2026. It is now read-only.
This repository was archived by the owner on Mar 11, 2026. It is now read-only.

"Cannot read property 'Reader' of undefined" after upgrade 8.0.1 -> 8.0.3 #877

Description

@seriousManual

This package is a subdependency for logging-winston (https://www.npmjs.com/package/@google-cloud/logging-winston).
We're using the latest version of logging-winston which is 4.0.0.
Since the upgrade from 8.0.1 to 8.0.3 is on the patch level it is automatically installed. My tests started failing and I was able to narrow the problem down to the automatic upgrade from 8.0.1 to 8.0.3. When I'm forcing the version of this package to be 8.0.1 the errors disappear

TypeError: Cannot read property 'Reader' of undefined
    at /mnt/c/dev/abc/abc/abc/src/ping/node_modules/@google-cloud/logging/build/protos/protos.js:28:29
    at /mnt/c/dev/abc/abc/abc/src/ping/node_modules/@google-cloud/logging/build/protos/protos.js:22:26
    at Object.<anonymous> (/mnt/c/dev/abc/abc/abc/src/ping/node_modules/@google-cloud/logging/build/protos/protos.js:24:3)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)

Metadata

Metadata

Labels

api: loggingIssues related to the googleapis/nodejs-logging API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions