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

Can't use with vite #37

Closed
ihamzapped opened this issue Feb 27, 2022 · 1 comment
Closed

Can't use with vite #37

ihamzapped opened this issue Feb 27, 2022 · 1 comment

Comments

@ihamzapped
Copy link

In a vue + ts + vite setup, importing this module gives the following error:

Module "stream" has been externalized for browser compatibility and cannot be accessed in client code.

@joshstevens19
Copy link
Owner

you will need to use webpack to bundle it to turn it into browser code, also if you google your error you find a few answers!

out of scope for the project to bundle this in a way for you.. that's down to the app using it (angular, vue, react do this for you automatically so I'm guessing it is a simple thing to handle when using vite)

let me know if you get it to work

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