You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 17, 2026. It is now read-only.
OS: Windows 10 (my machine) and Ubuntu 18.04 (GitHub Action runner)
Node.js version: 12.14
npm version: 6.14.5
@google-cloud/pubsub version: 2.4.0
Typescript version: 3.9.7
Steps to reproduce
Import anything from @google-cloud/[email protected] (e.g. Message), and use it
Run the code
The following error will occur:
TypeError: Cannot read property 'Reader' of undefined
at ../node_modules/@google-cloud/pubsub/build/protos/protos.js:28:29
at ../node_modules/@google-cloud/pubsub/build/protos/protos.js:22:26
at Object.<anonymous> (../node_modules/@google-cloud/pubsub/build/protos/protos.js:24:3)
at Object.<anonymous> (../node_modules/@google-cloud/pubsub/src/index.ts:156:1)
I had a look through the diff between 2.3.0 and 2.4.0, but couldn't see anything suspect. I did try downgrading my Typescript version to 3.8.3 to match what this library was compiled with, but the same error occurs
Environment details
@google-cloud/pubsubversion: 2.4.0Steps to reproduce
@google-cloud/[email protected](e.g.Message), and use itMinimal reproduction:
I had a look through the diff between
2.3.0and2.4.0, but couldn't see anything suspect. I did try downgrading my Typescript version to3.8.3to match what this library was compiled with, but the same error occurs