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
jszip module uses "streams" which are included in Node.js but are not included in a browser.
Bundlers (for example, webpack) seem to have their own internal list of modules for which they have a built-in substitution and stream module seems to be one of them. https://unpkg.com/jszip@3.1.5/lib/readable-stream-browser.js
So, when Webpack sees require('stream') it replaces it with its own substitute.
Seems that you're using "browserify" bundler which substitutes require('stream') with stream-browserify module.
And stream-browserify uses readable-stream internally which uses a native Node.js module called util which is not available in a browser too.
Now, I guess Webpack would substitute util with something else but Browserify seems to not do that.
Context:
npm version = 5.6.0
"engines": {
"node": ">=6.9.0",
"npm": ">= 3"
}
The text was updated successfully, but these errors were encountered: