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 resolve 'stream' in '...\node_modules\jszip\lib' #20

Closed
emmanueldaher opened this issue Mar 25, 2019 · 3 comments
Closed

Can't resolve 'stream' in '...\node_modules\jszip\lib' #20

emmanueldaher opened this issue Mar 25, 2019 · 3 comments

Comments

@emmanueldaher
Copy link

emmanueldaher commented Mar 25, 2019

Hello folks,
I'm using version 2.0.7 with Angular 7.2.0 and jszip@~3.1.5 according to the packae.json dependencies, although I can't even build in dev mode.
Here is the error message:

ERROR in ./node_modules/jszip/lib/readable-stream-browser.js
Module not found: Error: Can't resolve 'stream' in '...\node_modules\jszip\lib'

Does someone know whats is going on?


Update: I've tried to reproduce the error on stackblitz and then i got another error:
https://stackblitz.com/edit/angular-5tbb8h?file=src%2Fapp%2Fxls-reader%2Fxls-reader.component.ts

@catamphetamine
Copy link
Owner

@emmanueldaher The error comes from jszip package.
Something like this one:
Stuk/jszip#524
You can report the error in their repo.

@renilbabu03
Copy link

npm install stream worked for me

@catamphetamine catamphetamine changed the title Can't run in browser with Angular / Type Script / Webpack Can't resolve 'stream' in '...\node_modules\jszip\lib' Apr 18, 2020
@radiumrasheed
Copy link

I think stream should just be added as a peer dependency

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

4 participants