Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 BUG: Importing @google-cloud/storage fails with Uncaught TypeError: (init_inherits(...) , __toCommonJS(...)) is not a function with nodejs_compat_v2 #6676

Open
miunau opened this issue Sep 11, 2024 · 2 comments
Labels
bug Something that isn't working

Comments

@miunau
Copy link

miunau commented Sep 11, 2024

Which Cloudflare product(s) does this pertain to?

Wrangler

What version(s) of the tool(s) are you using?

3.76.0 [Wrangler]

What version of Node are you using?

22.6.0

What operating system and version are you using?

MacOS Sonoma 14.4.1

Describe the Bug

Observed behavior

Including @google-cloud/storage fails with the latest node compat.

wrangler dev:

Uncaught TypeError: (init_inherits(...) , __toCommonJS(...)) is not a function

    at null.<anonymous> (index.js:28993:54) in
  ../../node_modules/.pnpm/[email protected]/node_modules/readable-stream/lib/_stream_readable.js

Expected behavior

Importing should work.

Steps to reproduce

Import @google-cloud/storage.

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

No response

@miunau miunau added the bug Something that isn't working label Sep 11, 2024
@helle253
Copy link

We are seeing a similar issue with the @google-cloud/recaptcha-enterprise.

@groudjulien
Copy link

We are seeing a similar issue with the @google-cloud/pubsub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that isn't working
Projects
None yet
Development

No branches or pull requests

3 participants