"Error: cannot find module 'stream'" when using Chrome
envgap__Stuk__jszip-477
01 / FAILURE SIGNATURE
As reported upstream
Result: "Error: cannot find module 'stream'"
Not a benchmark task.
- The project already builds and runs before the fix, so there is nothing to repair.
02 / ENVIRONMENT RECIPE
- Base commit
8742db3a5f725f6651948018d77be3499059814d- Manifest
package.json- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
Stuk/jszip #477 · read the original issue
On my Windows Home desktop, I install jszip 3.1.4 with NPM and open this html file with Google Chrome browser (Version 61.0.3163.100 (Official Build) (64-bit)):
```
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="node_modules/jszip/dist/jszip.js" ></script>
</head>
<body>
<p>Hello</p>
</body>
</html>
```
Result: "Error: cannot find module 'stream'"
Problem does not occur with Firefox, MS IE, or MS Edge.
Similar to what @mitchwilson found in [Issue #464](https://github.com/Stuk/jszip/issues/464), when I comment out line #1709 `module.exports = require("stream");` it works fine. I'm using jszip on client side.04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]