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

Use Vite, Module "node:stream" has been externalized for browser compatibility #2368

Closed
TyCoding opened this issue Jul 24, 2024 · 1 comment

Comments

@TyCoding
Copy link

error:

Module "node:stream" has been externalized for browser compatibility. Cannot access "node:stream.Readable" in client cod

Using got('http://') in a new Vite project will directly cause this error, which seems to be a node:stream problem. How can I solve this problem?

@sindresorhus
Copy link
Owner

This would be a question to ask on the Vite repo, not here.

@sindresorhus sindresorhus closed this as not planned Won't fix, can't repro, duplicate, stale Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants